Closed a memory leak in convert.c.

--sg
This commit is contained in:
scott 1997-12-18 02:34:43 +00:00
parent 104b4b1de8
commit 75baaf34fe
4 changed files with 15 additions and 0 deletions

View File

@ -8,6 +8,9 @@ Wed Dec 17 15:33:23 PST 1997 Manish Singh <yosh@gimp.org>
Wed Dec 17 13:24:48 1997 Scott Goehring <scott@poverty.bloomington.in.us>
* app/convert.c (convert_image): Closed a rather nasty memory
leak.
* plug-ins/xpm/xpm.c (run): Added access to the alpha cutoff via
the PDB. Added a missing break in the run_mode switch.

View File

@ -763,6 +763,10 @@ convert_image (GImage *gimage,
layer->type = new_layer_type;
}
/* Delete the quantizer object, if there is one */
if (quantobj)
quantobj->delete_func (quantobj);
/* Make sure the projection is up to date */
gimage_projection_realloc (gimage);

View File

@ -763,6 +763,10 @@ convert_image (GImage *gimage,
layer->type = new_layer_type;
}
/* Delete the quantizer object, if there is one */
if (quantobj)
quantobj->delete_func (quantobj);
/* Make sure the projection is up to date */
gimage_projection_realloc (gimage);

View File

@ -763,6 +763,10 @@ convert_image (GImage *gimage,
layer->type = new_layer_type;
}
/* Delete the quantizer object, if there is one */
if (quantobj)
quantobj->delete_func (quantobj);
/* Make sure the projection is up to date */
gimage_projection_realloc (gimage);