summaryrefslogtreecommitdiff
path: root/src/gtkext/gtkdisplaypanel.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2018-08-08 23:05:12 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2018-08-08 23:05:12 (GMT)
commitde379f531ad5fa356b33287196f884550abd2af4 (patch)
treedf15fee4e06c5424de4b01f42baec3005e081091 /src/gtkext/gtkdisplaypanel.c
parent89d41f2629b9d98069fa7c1db70821a14da57523 (diff)
Updated some object destruction processes.
Diffstat (limited to 'src/gtkext/gtkdisplaypanel.c')
-rw-r--r--src/gtkext/gtkdisplaypanel.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gtkext/gtkdisplaypanel.c b/src/gtkext/gtkdisplaypanel.c
index 4b21d8c..3623ced 100644
--- a/src/gtkext/gtkdisplaypanel.c
+++ b/src/gtkext/gtkdisplaypanel.c
@@ -231,8 +231,13 @@ static void gtk_display_panel_loaded_interface_init(GLoadedPanelInterface *iface
static void gtk_display_panel_dispose(GtkDisplayPanel *panel)
{
+ g_clear_object(&panel->hadjustment);
+ g_clear_object(&panel->vadjustment);
+
g_clear_object(&panel->options);
+ g_clear_object(&panel->binary);
+
G_OBJECT_CLASS(gtk_display_panel_parent_class)->dispose(G_OBJECT(panel));
}