From dd6d312d566d319b0aa2b45ee76c813fbf02c00d Mon Sep 17 00:00:00 2001 From: Prakash Date: Wed, 8 May 2013 14:45:08 +0530 Subject: [PATCH] [evas xlib swapper] Memory leak fixed Change-Id: Ie036edc5c23040c7525951c4ead62580d51e4e6f --- src/modules/engines/software_x11/evas_xlib_swapper.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/modules/engines/software_x11/evas_xlib_swapper.c b/src/modules/engines/software_x11/evas_xlib_swapper.c index cd615c7..ce94c49 100755 --- a/src/modules/engines/software_x11/evas_xlib_swapper.c +++ b/src/modules/engines/software_x11/evas_xlib_swapper.c @@ -550,6 +550,14 @@ _drm_init(Display *disp, int scr) if (swap_debug) ERR("DRM bufmgr init failed"); goto err; } + if (drv_name) + { + XFree(drv_name); + } + if (dev_name) + { + XFree(dev_name); + } return EINA_TRUE; err: if (drm_fd >= 0) @@ -577,6 +585,14 @@ err: dlclose(xfixes_lib); xfixes_lib = NULL; } + if (drv_name) + { + XFree(drv_name); + } + if (dev_name) + { + XFree(dev_name); + } return EINA_FALSE; } -- 2.7.4