mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-28 05:10:49 +00:00
Bug 199169 - plug occasional leak of gif colormap. r=paper, sr=brendan
This commit is contained in:
parent
c507845f15
commit
812ffefbdd
@ -1114,13 +1114,7 @@ void gif_destroy(gif_struct *gs)
|
||||
gif_free(gs->stack);
|
||||
PR_FREEIF(gs->hold);
|
||||
|
||||
/* Free the colormap that is not in use. The other one, if
|
||||
* present, will be freed when the image container is
|
||||
* destroyed.
|
||||
*/
|
||||
if (gs->is_local_colormap_defined)
|
||||
PR_FREEIF(gs->local_colormap);
|
||||
|
||||
PR_FREEIF(gs->local_colormap);
|
||||
PR_FREEIF(gs->global_colormap);
|
||||
PR_FREEIF(gs);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user