[gtk+/wip/baedert/gl: 35/59] window: Plug a memory leak
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/gl: 35/59] window: Plug a memory leak
- Date: Sun, 19 Nov 2017 17:56:05 +0000 (UTC)
commit 5803757233b43186fdfa9f8e21209308ba4bebab
Author: Timm Bäder <mail baedert org>
Date: Sun Nov 19 18:55:32 2017 +0100
window: Plug a memory leak
gtk/gtkwindow.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 13a28e2..d67a5f9 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -1834,6 +1834,9 @@ captured_event_cb (GtkWidget *widget,
gtk_widget_set_cursor (widget, cursor);
+ if (cursor)
+ g_object_unref (cursor);
+
return GDK_EVENT_PROPAGATE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]