[gtk+] window: Plug a memory leak
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] window: Plug a memory leak
- Date: Fri, 1 Dec 2017 06:35:58 +0000 (UTC)
commit ff35fbf1202bdde8d15fdf05f18a8aa9f2809541
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 ac62c4b..1d8a8ba 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]