mirror of https://github.com/GNOME/gimp.git
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:
parent
7fd9c0b661
commit
e5528e6cd8
11
ChangeLog
11
ChangeLog
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue