forked from enlightenment/efl
ecore-evas-x: Fix double free
Coverity reports, and reading the code confirms, that the variable 'out' has already been freed (or is NULL) when reaching this line of execution. Fixes CID1382851 @fix
This commit is contained in:
parent
5b2b75a7f2
commit
b36833f49b
|
@ -3528,7 +3528,6 @@ _ecore_evas_x_screen_geometry_get(const Ecore_Evas *ee, int *x, int *y, int *w,
|
||||||
if (!out)
|
if (!out)
|
||||||
{
|
{
|
||||||
norandr:
|
norandr:
|
||||||
if (out) free(out);
|
|
||||||
if (x) *x = 0;
|
if (x) *x = 0;
|
||||||
if (y) *y = 0;
|
if (y) *y = 0;
|
||||||
ecore_x_window_size_get(root, w, h);
|
ecore_x_window_size_get(root, w, h);
|
||||||
|
|
Loading…
Reference in New Issue