forked from AuroraMiddleware/gtk
Unref tile and stipple when finalizing a gc. (#320789, Nickolay V.
2005-11-08 Matthias Clasen <mclasen@redhat.com> * gdk/gdkgc.c (gdk_gc_finalize): Unref tile and stipple when finalizing a gc. (#320789, Nickolay V. Shmyrev)
This commit is contained in:
parent
3514077069
commit
15d5ffae32
@ -1,5 +1,8 @@
|
||||
2005-11-08 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gdk/gdkgc.c (gdk_gc_finalize): Unref tile and stipple when
|
||||
finalizing a gc. (#320789, Nickolay V. Shmyrev)
|
||||
|
||||
* gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): Ignore
|
||||
icons if they would make the request large enough to cause
|
||||
Xlib to loose the connection. (#320909, Claudio Saavedra)
|
||||
|
@ -1,5 +1,8 @@
|
||||
2005-11-08 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gdk/gdkgc.c (gdk_gc_finalize): Unref tile and stipple when
|
||||
finalizing a gc. (#320789, Nickolay V. Shmyrev)
|
||||
|
||||
* gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): Ignore
|
||||
icons if they would make the request large enough to cause
|
||||
Xlib to loose the connection. (#320909, Claudio Saavedra)
|
||||
|
@ -188,6 +188,10 @@ gdk_gc_finalize (GObject *object)
|
||||
gdk_region_destroy (priv->clip_region);
|
||||
if (gc->colormap)
|
||||
g_object_unref (gc->colormap);
|
||||
if (priv->tile)
|
||||
g_object_unref (priv->tile);
|
||||
if (priv->stipple)
|
||||
g_object_unref (priv->stipple);
|
||||
|
||||
G_OBJECT_CLASS (gdk_gc_parent_class)->finalize (object);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user