Don't leak no_gr_exp_gc. (#350050, Chris Wilson)

2006-08-15  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkruler.c (gtk_ruler_unrealize): Don't leak
	no_gr_exp_gc.  (#350050, Chris Wilson)
This commit is contained in:
Matthias Clasen 2006-08-15 17:12:23 +00:00 committed by Matthias Clasen
parent c74f0bbf65
commit 98c23811f5
3 changed files with 15 additions and 3 deletions

View File

@ -1,5 +1,8 @@
2006-08-15 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkruler.c (gtk_ruler_unrealize): Don't leak
no_gr_exp_gc. (#350050, Chris Wilson)
* gdk/x11/gdkdrawable-x11.c (get_shm_pixmap_for_image): Don't
leak ShmPixmapInfo. (#349858, Chris Wilson)

View File

@ -1,5 +1,8 @@
2006-08-15 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkruler.c (gtk_ruler_unrealize): Don't leak
no_gr_exp_gc. (#350050, Chris Wilson)
* gdk/x11/gdkdrawable-x11.c (get_shm_pixmap_for_image): Don't
leak ShmPixmapInfo. (#349858, Chris Wilson)

View File

@ -385,10 +385,16 @@ gtk_ruler_unrealize (GtkWidget *widget)
GtkRuler *ruler = GTK_RULER (widget);
if (ruler->backing_store)
g_object_unref (ruler->backing_store);
{
g_object_unref (ruler->backing_store);
ruler->backing_store = NULL;
}
ruler->backing_store = NULL;
ruler->non_gr_exp_gc = NULL;
if (ruler->non_gr_exp_gc)
{
g_object_unref (ruler->non_gr_exp_gc);
ruler->non_gr_exp_gc = NULL;
}
if (GTK_WIDGET_CLASS (gtk_ruler_parent_class)->unrealize)
(* GTK_WIDGET_CLASS (gtk_ruler_parent_class)->unrealize) (widget);