Commit e5528e6c authored by BST 1999 Andy Thomas's avatar BST 1999 Andy Thomas Committed by Andy Thomas

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