summaryrefslogtreecommitdiff
path: root/gdk/gdkimage.c
diff options
context:
space:
mode:
authorTim Janik <timj@gimp.org>1998-01-26 01:20:14 +0000
committerTim Janik <timj@src.gnome.org>1998-01-26 01:20:14 +0000
commitf734007af4cba93349a969b50ea1d44bfa0e95a3 (patch)
tree1acb1a364b6b2c3fb1e4bf14a6e9f5ebaa8b0a37 /gdk/gdkimage.c
parent63f6c689ff1ac6f28a412bf8a9861e9e7541be55 (diff)
downloadgdk-pixbuf-f734007af4cba93349a969b50ea1d44bfa0e95a3.tar.gz
added a bunch of checks for window != NULL and private->destroyed. (don't
Mon Jan 26 02:15:29 1998 Tim Janik <timj@gimp.org> * gdk/gdkdraw.c: * gdk/gdkgc.c: * gdk/gdkimage.c: * gdk/gdkinput.c: * gdk/gdkpixmap.c: * gdk/gdkproperty.c: * gdk/gdkselection.c: * gdk/gdkwindow.c: added a bunch of checks for window != NULL and private->destroyed. (don't trust this cvs commit message, i didn't modify that many files!)
Diffstat (limited to 'gdk/gdkimage.c')
-rw-r--r--gdk/gdkimage.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdk/gdkimage.c b/gdk/gdkimage.c
index bcda3119f..0e4caab79 100644
--- a/gdk/gdkimage.c
+++ b/gdk/gdkimage.c
@@ -330,6 +330,8 @@ gdk_image_get (GdkWindow *window,
g_return_val_if_fail (window != NULL, NULL);
win_private = (GdkWindowPrivate *) window;
+ if (win_private->destroyed)
+ return NULL;
private = g_new (GdkImagePrivate, 1);
image = (GdkImage*) private;
@@ -447,6 +449,8 @@ gdk_image_put_normal (GdkDrawable *drawable,
g_return_if_fail (gc != NULL);
drawable_private = (GdkWindowPrivate*) drawable;
+ if (drawable_private->destroyed)
+ return;
image_private = (GdkImagePrivate*) image;
gc_private = (GdkGCPrivate*) gc;
@@ -478,6 +482,8 @@ gdk_image_put_shared (GdkDrawable *drawable,
g_return_if_fail (gc != NULL);
drawable_private = (GdkWindowPrivate*) drawable;
+ if (drawable_private->destroyed)
+ return;
image_private = (GdkImagePrivate*) image;
gc_private = (GdkGCPrivate*) gc;