mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-25 21:21:21 +00:00
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:
parent
c74f0bbf65
commit
98c23811f5
@ -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)
|
||||
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user