forked from enlightenment/efl
free strings in dri/drm swapper so they don't leak.
This commit is contained in:
parent
d92783d5f7
commit
fd8cb707b9
|
@ -556,6 +556,8 @@ _drm_init(Display *disp, int scr)
|
||||||
if (swap_debug) ERR("DRM bufmgr init failed");
|
if (swap_debug) ERR("DRM bufmgr init failed");
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
|
if (drv_name) XFree(drv_name);
|
||||||
|
if (dev_name) XFree(dev_name);
|
||||||
return EINA_TRUE;
|
return EINA_TRUE;
|
||||||
err:
|
err:
|
||||||
if (drm_fd >= 0)
|
if (drm_fd >= 0)
|
||||||
|
@ -583,6 +585,8 @@ err:
|
||||||
dlclose(xfixes_lib);
|
dlclose(xfixes_lib);
|
||||||
xfixes_lib = NULL;
|
xfixes_lib = NULL;
|
||||||
}
|
}
|
||||||
|
if (drv_name) XFree(drv_name);
|
||||||
|
if (dev_name) XFree(dev_name);
|
||||||
return EINA_FALSE;
|
return EINA_FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue