[gtk+/gestures: 123/140] GtkWindow: Don't leak the gesture
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gestures: 123/140] GtkWindow: Don't leak the gesture
- Date: Tue, 6 May 2014 16:51:15 +0000 (UTC)
commit 07f41af34977a53732b320c7ef0b1c05982c5787
Author: Matthias Clasen <mclasen redhat com>
Date: Thu May 1 22:00:01 2014 -0400
GtkWindow: Don't leak the gesture
gtk/gtkwindow.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index a047ca5..eab1eae 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -5436,6 +5436,11 @@ gtk_window_finalize (GObject *object)
priv->mnemonics_display_timeout_id = 0;
}
+ gtk_widget_remove_controller (GTK_WIDGET (window),
+ GTK_EVENT_CONTROLLER (priv->multipress_gesture));
+ g_object_unref (priv->multipress_gesture);
+
+
G_OBJECT_CLASS (gtk_window_parent_class)->finalize (object);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]