summaryrefslogtreecommitdiff
path: root/gtk/gtkscrolledwindow.c
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2017-09-28 20:00:24 +0200
committerTimm Bäder <mail@baedert.org>2017-09-28 20:01:01 +0200
commit29a4f0ce1f7722017f5993a64e2e4a5687d2d4ea (patch)
tree5dccdeb30459f2633a8a7f20428afaf637fa51ab /gtk/gtkscrolledwindow.c
parent29dd0a940e5111d7f0bb55b3b68d52b8c1e44470 (diff)
downloadgtk+-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.c2
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);
}