From b3365eed6c0db4157880a1d14867214213cf2d8c Mon Sep 17 00:00:00 2001 From: raster Date: Sat, 28 Aug 2010 15:07:45 +0000 Subject: [PATCH] leak-- git-svn-id: http://svn.enlightenment.org/svn/e/trunk/ecore@51702 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/ecore_x/xlib/ecore_x_randr_12.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/lib/ecore_x/xlib/ecore_x_randr_12.c b/src/lib/ecore_x/xlib/ecore_x_randr_12.c index 7e31730..27ef9c5 100644 --- a/src/lib/ecore_x/xlib/ecore_x_randr_12.c +++ b/src/lib/ecore_x/xlib/ecore_x_randr_12.c @@ -832,12 +832,12 @@ ecore_x_randr_crtc_orientations_get(Ecore_X_Window root, (crtc_info = XRRGetCrtcInfo(_ecore_x_disp, res, crtc))) { ret = crtc_info->rotations; - if (crtc_info) - XRRFreeCrtcInfo(crtc_info); - - if (res) - XRRFreeScreenResources(res); } + if (crtc_info) + XRRFreeCrtcInfo(crtc_info); + + if (res) + XRRFreeScreenResources(res); return ret; #else @@ -862,13 +862,13 @@ ecore_x_randr_crtc_orientation_get(Ecore_X_Window root, Ecore_X_Randr_Crtc crtc) (crtc_info = XRRGetCrtcInfo(_ecore_x_disp, res, crtc))) { ret = crtc_info->rotation; - if (crtc_info) - XRRFreeCrtcInfo(crtc_info); - - if (res) - XRRFreeScreenResources(res); } - + if (crtc_info) + XRRFreeCrtcInfo(crtc_info); + + if (res) + XRRFreeScreenResources(res); + return ret; #else return Ecore_X_Randr_None; -- 2.7.4