e17: Fix memory corruption in e_remember.

Inspired by Daniels ecore mem corruption patch I fixed our coccinelle support
scripts. This one was found by bad-alloc.cocci for example.

SVN revision: 77353
This commit is contained in:
Stefan Schmidt 2012-10-03 08:45:40 +00:00
parent cd7260094e
commit 07d8a49d00
1 changed files with 1 additions and 1 deletions

View File

@ -447,7 +447,7 @@ _e_remember_update(E_Border *bd, E_Remember *rem)
{
E_Event_Remember_Update *ev;
ev = malloc(sizeof(ev));
ev = malloc(sizeof(E_Event_Remember_Update));
if (!ev) return;
ev->border = bd;
ecore_event_add(E_EVENT_REMEMBER_UPDATE, ev, NULL, NULL);