diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2018-08-08 23:05:12 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2018-08-08 23:05:12 (GMT) |
commit | de379f531ad5fa356b33287196f884550abd2af4 (patch) | |
tree | df15fee4e06c5424de4b01f42baec3005e081091 /src/gtkext | |
parent | 89d41f2629b9d98069fa7c1db70821a14da57523 (diff) |
Updated some object destruction processes.
Diffstat (limited to 'src/gtkext')
-rw-r--r-- | src/gtkext/gtkbufferdisplay.c | 2 | ||||
-rw-r--r-- | src/gtkext/gtkdisplaypanel.c | 5 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/gtkext/gtkbufferdisplay.c b/src/gtkext/gtkbufferdisplay.c index f41c4e3..60b1f40 100644 --- a/src/gtkext/gtkbufferdisplay.c +++ b/src/gtkext/gtkbufferdisplay.c @@ -207,6 +207,8 @@ static void gtk_buffer_display_dispose(GtkBufferDisplay *display) { g_clear_object(&display->view); + g_clear_object(&display->cursor); + G_OBJECT_CLASS(gtk_buffer_display_parent_class)->dispose(G_OBJECT(display)); } 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)); } |