leak--. If we are returning NULL on buffer_new, then free any allocated xob

structure.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 83158
This commit is contained in:
Christopher Michael 2013-01-23 10:55:04 +00:00 committed by Christopher Michael
parent b209454381
commit b07683009a
1 changed files with 5 additions and 1 deletions

View File

@ -340,7 +340,11 @@ evas_software_xlib_x_output_buffer_new(Display *d, Visual *v, int depth, int w,
}
}
if (try_shm > 1) return NULL;
if (try_shm > 1)
{
free(xob);
return NULL;
}
xob->xim = XCreateImage(d, v, depth, ZPixmap, 0, data, w, h, 32, 0);
if (!xob->xim)