[gtk+/gestures: 123/202] GtkWindow: Don't leak the gesture
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gestures: 123/202] GtkWindow: Don't leak the gesture
- Date: Fri, 23 May 2014 18:06:42 +0000 (UTC)
commit c6c41262b678a3e1fd0d95a11b92c709a2a08baa
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 920e376..1db338d 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -5463,6 +5463,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]