free strings in dri/drm swapper so they don't leak.
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Fri, 10 May 2013 04:35:02 +0000 (13:35 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Fri, 10 May 2013 04:35:02 +0000 (13:35 +0900)
src/modules/evas/engines/software_x11/evas_xlib_swapper.c

index b3f19e9..1e2bd6f 100644 (file)
@@ -556,6 +556,8 @@ _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)
@@ -583,6 +585,8 @@ err:
         dlclose(xfixes_lib);
         xfixes_lib = NULL;
      }
+   if (drv_name) XFree(drv_name);
+   if (dev_name) XFree(dev_name);
    return EINA_FALSE;
 }