[gtk+] GdkWindow: don't leak the newly created frame clock
- From: Owen Taylor <otaylor src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] GdkWindow: don't leak the newly created frame clock
- Date: Mon, 18 Feb 2013 20:32:49 +0000 (UTC)
commit b61198cfcbed499496a9581d5e8ce5e9ad4ae7c4
Author: Owen W. Taylor <otaylor fishsoup net>
Date: Mon Feb 18 15:14:53 2013 -0500
GdkWindow: don't leak the newly created frame clock
gdk/gdkwindow.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index 410eb16..b0ccd9c 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -1473,6 +1473,7 @@ gdk_window_new (GdkWindow *parent,
{
GdkFrameClock *frame_clock = g_object_new (GDK_TYPE_FRAME_CLOCK_IDLE, NULL);
gdk_window_set_frame_clock (window, frame_clock);
+ g_object_unref (frame_clock);
}
native = FALSE;
@@ -1735,6 +1736,7 @@ gdk_window_reparent (GdkWindow *window,
{
GdkFrameClock *frame_clock = g_object_new (GDK_TYPE_FRAME_CLOCK_IDLE, NULL);
gdk_window_set_frame_clock (window, frame_clock);
+ g_object_unref (frame_clock);
}
}
else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]