[gtk+] GtkPopover: Clean up default widget on dispose
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] GtkPopover: Clean up default widget on dispose
- Date: Tue, 12 May 2015 12:25:27 +0000 (UTC)
commit 2bb1ed69f0b317c82b2a2ef8663671104eb88ca4
Author: Matthias Clasen <mclasen redhat com>
Date: Tue May 12 07:57:04 2015 -0400
GtkPopover: Clean up default widget on dispose
We forgot to drop the ref we take. Thankfully our
tests caught this.
gtk/gtkpopover.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkpopover.c b/gtk/gtkpopover.c
index 827c593..ba2fcba 100644
--- a/gtk/gtkpopover.c
+++ b/gtk/gtkpopover.c
@@ -317,6 +317,8 @@ gtk_popover_dispose (GObject *object)
popover_unset_prev_focus (popover);
+ g_clear_object (&priv->default_widget);
+
G_OBJECT_CLASS (gtk_popover_parent_class)->dispose (object);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]