diff options
author | Timm Bäder <mail@baedert.org> | 2017-09-28 20:00:24 +0200 |
---|---|---|
committer | Timm Bäder <mail@baedert.org> | 2017-09-28 20:01:01 +0200 |
commit | 29a4f0ce1f7722017f5993a64e2e4a5687d2d4ea (patch) | |
tree | 5dccdeb30459f2633a8a7f20428afaf637fa51ab /gtk/gtkscrolledwindow.c | |
parent | 29dd0a940e5111d7f0bb55b3b68d52b8c1e44470 (diff) | |
download | gtk+-29a4f0ce1f7722017f5993a64e2e4a5687d2d4ea.tar.gz |
Plug some memory leaks
Make sure the scroll controllers in GtkComboBox and GtkScrolledWindow
get destroyed.
Diffstat (limited to 'gtk/gtkscrolledwindow.c')
-rw-r--r-- | gtk/gtkscrolledwindow.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkscrolledwindow.c b/gtk/gtkscrolledwindow.c index 52fbd20b2f..9d89da1f4a 100644 --- a/gtk/gtkscrolledwindow.c +++ b/gtk/gtkscrolledwindow.c @@ -2642,6 +2642,8 @@ gtk_scrolled_window_finalize (GObject *object) g_clear_object (&priv->swipe_gesture); g_clear_object (&priv->long_press_gesture); g_clear_object (&priv->pan_gesture); + g_clear_object (&priv->scroll_controller); + G_OBJECT_CLASS (gtk_scrolled_window_parent_class)->finalize (object); } |