app/gimpimage.c

Thu Oct 28 23:22:34 BST 1999 Andy Thomas <alt@gimp.org>

	* app/gimpimage.c

	Fixed memory leak with image is deleted.

	* plug-ins/common/jpeg.c

	Fixed the way the plugin added layers. Preview stuff does not now
	get corrupted.
This commit is contained in:
BST 1999 Andy Thomas 1999-10-28 22:47:56 +00:00 committed by Andy Thomas
parent 7fd9c0b661
commit e5528e6cd8
16 changed files with 49 additions and 14 deletions

View File

@ -1,3 +1,14 @@
Thu Oct 28 23:22:34 BST 1999 Andy Thomas <alt@gimp.org>
* app/gimpimage.c
Fixed memory leak with image is deleted.
* plug-ins/common/jpeg.c
Fixed the way the plugin added layers. Preview stuff does not now
get corrupted.
1999-10-28 Michael Natterer <mitschel@cs.tu-berlin.de>
* app/Makefile.am

View File

@ -657,6 +657,9 @@ gimp_image_destroy (GtkObject *object)
gimp_image_free_channels (gimage);
channel_delete (gimage->selection_mask);
if (gimage->comp_preview)
temp_buf_free (gimage->comp_preview);
if (gimage->parasites)
gtk_object_unref (GTK_OBJECT (gimage->parasites));
}

View File

@ -657,6 +657,9 @@ gimp_image_destroy (GtkObject *object)
gimp_image_free_channels (gimage);
channel_delete (gimage->selection_mask);
if (gimage->comp_preview)
temp_buf_free (gimage->comp_preview);
if (gimage->parasites)
gtk_object_unref (GTK_OBJECT (gimage->parasites));
}

View File

@ -657,6 +657,9 @@ gimp_image_destroy (GtkObject *object)
gimp_image_free_channels (gimage);
channel_delete (gimage->selection_mask);
if (gimage->comp_preview)
temp_buf_free (gimage->comp_preview);
if (gimage->parasites)
gtk_object_unref (GTK_OBJECT (gimage->parasites));
}

View File

@ -657,6 +657,9 @@ gimp_image_destroy (GtkObject *object)
gimp_image_free_channels (gimage);
channel_delete (gimage->selection_mask);
if (gimage->comp_preview)
temp_buf_free (gimage->comp_preview);
if (gimage->parasites)
gtk_object_unref (GTK_OBJECT (gimage->parasites));
}

View File

@ -657,6 +657,9 @@ gimp_image_destroy (GtkObject *object)
gimp_image_free_channels (gimage);
channel_delete (gimage->selection_mask);
if (gimage->comp_preview)
temp_buf_free (gimage->comp_preview);
if (gimage->parasites)
gtk_object_unref (GTK_OBJECT (gimage->parasites));
}

View File

@ -657,6 +657,9 @@ gimp_image_destroy (GtkObject *object)
gimp_image_free_channels (gimage);
channel_delete (gimage->selection_mask);
if (gimage->comp_preview)
temp_buf_free (gimage->comp_preview);
if (gimage->parasites)
gtk_object_unref (GTK_OBJECT (gimage->parasites));
}

View File

@ -657,6 +657,9 @@ gimp_image_destroy (GtkObject *object)
gimp_image_free_channels (gimage);
channel_delete (gimage->selection_mask);
if (gimage->comp_preview)
temp_buf_free (gimage->comp_preview);
if (gimage->parasites)
gtk_object_unref (GTK_OBJECT (gimage->parasites));
}

View File

@ -657,6 +657,9 @@ gimp_image_destroy (GtkObject *object)
gimp_image_free_channels (gimage);
channel_delete (gimage->selection_mask);
if (gimage->comp_preview)
temp_buf_free (gimage->comp_preview);
if (gimage->parasites)
gtk_object_unref (GTK_OBJECT (gimage->parasites));
}

View File

@ -888,8 +888,6 @@ load_image (char *filename,
layer_type, 100, NORMAL_MODE);
}
gimp_image_add_layer (image_ID, layer_ID, 0);
drawable_global = drawable = gimp_drawable_get (layer_ID);
gimp_pixel_rgn_init (&pixel_rgn, drawable, 0, 0, drawable->width, drawable->height, TRUE, FALSE);
@ -1022,6 +1020,7 @@ load_image (char *filename,
/* Tell the GIMP to display the image.
*/
gimp_image_add_layer (image_ID, layer_ID, 0);
gimp_drawable_flush (drawable);
/* pw - Last of all, attach the parasites (couldn't do it earlier -
@ -1473,6 +1472,7 @@ make_preview ()
gimp_displays_flush ();
gdk_flush();
}
}
static void

View File

@ -888,8 +888,6 @@ load_image (char *filename,
layer_type, 100, NORMAL_MODE);
}
gimp_image_add_layer (image_ID, layer_ID, 0);
drawable_global = drawable = gimp_drawable_get (layer_ID);
gimp_pixel_rgn_init (&pixel_rgn, drawable, 0, 0, drawable->width, drawable->height, TRUE, FALSE);
@ -1022,6 +1020,7 @@ load_image (char *filename,
/* Tell the GIMP to display the image.
*/
gimp_image_add_layer (image_ID, layer_ID, 0);
gimp_drawable_flush (drawable);
/* pw - Last of all, attach the parasites (couldn't do it earlier -
@ -1473,6 +1472,7 @@ make_preview ()
gimp_displays_flush ();
gdk_flush();
}
}
static void

View File

@ -888,8 +888,6 @@ load_image (char *filename,
layer_type, 100, NORMAL_MODE);
}
gimp_image_add_layer (image_ID, layer_ID, 0);
drawable_global = drawable = gimp_drawable_get (layer_ID);
gimp_pixel_rgn_init (&pixel_rgn, drawable, 0, 0, drawable->width, drawable->height, TRUE, FALSE);
@ -1022,6 +1020,7 @@ load_image (char *filename,
/* Tell the GIMP to display the image.
*/
gimp_image_add_layer (image_ID, layer_ID, 0);
gimp_drawable_flush (drawable);
/* pw - Last of all, attach the parasites (couldn't do it earlier -
@ -1473,6 +1472,7 @@ make_preview ()
gimp_displays_flush ();
gdk_flush();
}
}
static void

View File

@ -888,8 +888,6 @@ load_image (char *filename,
layer_type, 100, NORMAL_MODE);
}
gimp_image_add_layer (image_ID, layer_ID, 0);
drawable_global = drawable = gimp_drawable_get (layer_ID);
gimp_pixel_rgn_init (&pixel_rgn, drawable, 0, 0, drawable->width, drawable->height, TRUE, FALSE);
@ -1022,6 +1020,7 @@ load_image (char *filename,
/* Tell the GIMP to display the image.
*/
gimp_image_add_layer (image_ID, layer_ID, 0);
gimp_drawable_flush (drawable);
/* pw - Last of all, attach the parasites (couldn't do it earlier -
@ -1473,6 +1472,7 @@ make_preview ()
gimp_displays_flush ();
gdk_flush();
}
}
static void

View File

@ -888,8 +888,6 @@ load_image (char *filename,
layer_type, 100, NORMAL_MODE);
}
gimp_image_add_layer (image_ID, layer_ID, 0);
drawable_global = drawable = gimp_drawable_get (layer_ID);
gimp_pixel_rgn_init (&pixel_rgn, drawable, 0, 0, drawable->width, drawable->height, TRUE, FALSE);
@ -1022,6 +1020,7 @@ load_image (char *filename,
/* Tell the GIMP to display the image.
*/
gimp_image_add_layer (image_ID, layer_ID, 0);
gimp_drawable_flush (drawable);
/* pw - Last of all, attach the parasites (couldn't do it earlier -
@ -1473,6 +1472,7 @@ make_preview ()
gimp_displays_flush ();
gdk_flush();
}
}
static void

View File

@ -888,8 +888,6 @@ load_image (char *filename,
layer_type, 100, NORMAL_MODE);
}
gimp_image_add_layer (image_ID, layer_ID, 0);
drawable_global = drawable = gimp_drawable_get (layer_ID);
gimp_pixel_rgn_init (&pixel_rgn, drawable, 0, 0, drawable->width, drawable->height, TRUE, FALSE);
@ -1022,6 +1020,7 @@ load_image (char *filename,
/* Tell the GIMP to display the image.
*/
gimp_image_add_layer (image_ID, layer_ID, 0);
gimp_drawable_flush (drawable);
/* pw - Last of all, attach the parasites (couldn't do it earlier -
@ -1473,6 +1472,7 @@ make_preview ()
gimp_displays_flush ();
gdk_flush();
}
}
static void

View File

@ -888,8 +888,6 @@ load_image (char *filename,
layer_type, 100, NORMAL_MODE);
}
gimp_image_add_layer (image_ID, layer_ID, 0);
drawable_global = drawable = gimp_drawable_get (layer_ID);
gimp_pixel_rgn_init (&pixel_rgn, drawable, 0, 0, drawable->width, drawable->height, TRUE, FALSE);
@ -1022,6 +1020,7 @@ load_image (char *filename,
/* Tell the GIMP to display the image.
*/
gimp_image_add_layer (image_ID, layer_ID, 0);
gimp_drawable_flush (drawable);
/* pw - Last of all, attach the parasites (couldn't do it earlier -
@ -1473,6 +1472,7 @@ make_preview ()
gimp_displays_flush ();
gdk_flush();
}
}
static void