Bug 199169 - plug occasional leak of gif colormap. r=paper, sr=brendan

This commit is contained in:
tor%cs.brown.edu 2003-04-12 10:44:35 +00:00
parent c507845f15
commit 812ffefbdd

View File

@ -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);
}