Emotion: Fix memleak

Remove weird buffer which never gets used or free'd

SVN revision: 63136
This commit is contained in:
Sebastian Dransfeld 2011-09-03 21:09:31 +00:00
parent 9a282958c9
commit 02b73860a2
1 changed files with 0 additions and 3 deletions

View File

@ -144,7 +144,6 @@ _create_shm_data(Emotion_Generic_Video *ev, const char *shmname)
npages = (int)(size / getpagesize()) + 1;
size = npages * getpagesize();
char *buf = malloc(size);
if (ftruncate(shmfd, size))
{
@ -159,8 +158,6 @@ _create_shm_data(Emotion_Generic_Video *ev, const char *shmname)
return EINA_FALSE;
}
memcmp(vs, buf, size);
vs->size = size;
vs->width = ev->w;
vs->height = ev->h;