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
b8904f38a5
commit
9aaab0b017
|
@ -3528,7 +3528,6 @@ _ecore_evas_x_screen_geometry_get(const Ecore_Evas *ee, int *x, int *y, int *w,
|
|||
if (!out)
|
||||
{
|
||||
norandr:
|
||||
if (out) free(out);
|
||||
if (x) *x = 0;
|
||||
if (y) *y = 0;
|
||||
ecore_x_window_size_get(root, w, h);
|
||||
|
|
Loading…
Reference in New Issue