From: raster Date: Sat, 28 Aug 2010 15:07:45 +0000 (+0000) Subject: leak-- X-Git-Tag: build/2012-07-04.173327~1837 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b3365eed6c0db4157880a1d14867214213cf2d8c;p=profile%2Fivi%2Fecore.git leak-- git-svn-id: http://svn.enlightenment.org/svn/e/trunk/ecore@51702 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- 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;