[gtk+] Plug a memory leak in Xrandr code
- From: Matthias Clasen <matthiasc src gnome org>
- To: svn-commits-list gnome org
- Subject: [gtk+] Plug a memory leak in Xrandr code
- Date: Sat, 30 May 2009 02:15:59 -0400 (EDT)
commit 5964109ef30d4ab8df9c0a5a7c2806c5f57b1fe5
Author: Caolan McNamara <caolanm redhat com>
Date: Sat May 30 00:05:35 2009 -0400
Plug a memory leak in Xrandr code
---
gdk/x11/gdkscreen-x11.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/gdk/x11/gdkscreen-x11.c b/gdk/x11/gdkscreen-x11.c
index a2eacea..cbf0930 100644
--- a/gdk/x11/gdkscreen-x11.c
+++ b/gdk/x11/gdkscreen-x11.c
@@ -736,7 +736,10 @@ init_randr13 (GdkScreen *screen)
randr12_compat |= !g_strcmp0(output->name, "default");
if (output->connection == RR_Disconnected)
- continue;
+ {
+ XRRFreeOutputInfo (output);
+ continue;
+ }
if (output->crtc)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]