Commit 75baaf34 authored by scott's avatar scott
Browse files

Closed a memory leak in convert.c.

--sg
parent 104b4b1d
......@@ -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.
......
......@@ -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);
......
......@@ -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);
......
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment