forked from enlightenment/efl
Emotion: Fix memleak
Remove weird buffer which never gets used or free'd SVN revision: 63136
This commit is contained in:
parent
9a282958c9
commit
02b73860a2
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue