summaryrefslogtreecommitdiff
path: root/gdk
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2002-09-30 20:33:24 +0000
committerTor Lillqvist <tml@src.gnome.org>2002-09-30 20:33:24 +0000
commit6b20187e0ddb3b9783ad23b2d42c3adcf3ab0ba9 (patch)
tree8979d325410aaaf6bd04b1a905edf7370e91e7aa /gdk
parentd1d235adcb34fc340bf59be149142880180eb151 (diff)
downloadgtk+-6b20187e0ddb3b9783ad23b2d42c3adcf3ab0ba9.tar.gz
Set image->windowing_data to NULL, unref the image. (Late merge from
2002-09-30 Tor Lillqvist <tml@iki.fi> * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_impl_win32_finalize): Set image->windowing_data to NULL, unref the image. (Late merge from stable.)
Diffstat (limited to 'gdk')
-rw-r--r--gdk/win32/gdkpixmap-win32.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdk/win32/gdkpixmap-win32.c b/gdk/win32/gdkpixmap-win32.c
index f467ca95b5..6971566f14 100644
--- a/gdk/win32/gdkpixmap-win32.c
+++ b/gdk/win32/gdkpixmap-win32.c
@@ -101,6 +101,7 @@ gdk_pixmap_impl_win32_finalize (GObject *object)
{
GdkPixmapImplWin32 *impl = GDK_PIXMAP_IMPL_WIN32 (object);
GdkPixmap *wrapper = GDK_PIXMAP (GDK_DRAWABLE_IMPL_WIN32 (impl)->wrapper);
+ GdkImage *image = impl->image;
GDK_NOTE (PIXMAP, g_print ("gdk_pixmap_impl_win32_finalize: %p\n",
GDK_PIXMAP_HBITMAP (wrapper)));
@@ -110,6 +111,9 @@ gdk_pixmap_impl_win32_finalize (GObject *object)
gdk_win32_handle_table_remove (GDK_PIXMAP_HBITMAP (wrapper));
+ image->windowing_data = NULL;
+ g_object_unref (image);
+
G_OBJECT_CLASS (parent_class)->finalize (object);
}