do not free buf if no available buf

SVN revision: 25694
This commit is contained in:
doursse 2006-09-10 16:06:51 +00:00 committed by doursse
parent 3633644e9c
commit a5c5e9699a
2 changed files with 2 additions and 8 deletions

View File

@ -40,10 +40,7 @@ evas_software_x11_outbuf_setup_x(int w, int h, int rot, Outbuf_Depth depth,
buf = calloc(1, sizeof(Outbuf));
if (!buf)
{
free(buf);
return NULL;
}
return NULL;
buf->w = w;
buf->h = h;

View File

@ -55,10 +55,7 @@ evas_software_xcb_outbuf_setup_x(int w,
buf = calloc(1, sizeof(Outbuf));
if (!buf)
{
free(buf);
return NULL;
}
return NULL;
buf->w = w;
buf->h = h;