[gtk+/gtk-2-16] Plug a memory leak in Xrandr code
- From: Matthias Clasen <matthiasc src gnome org>
- To: svn-commits-list gnome org
- Subject: [gtk+/gtk-2-16] Plug a memory leak in Xrandr code
- Date: Sun, 31 May 2009 01:08:01 -0400 (EDT)
commit 1b79defed1ee122f38b72cb74b18f0fda008b1c8
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]