Enlightenment CVS committal Author : kwo Project : e16 Module : e
Dir : e16/e/src Modified Files: snaps.c Log Message: Fix snapshot removal memleak. =================================================================== RCS file: /cvsroot/enlightenment/e16/e/src/snaps.c,v retrieving revision 1.82 retrieving revision 1.83 diff -u -3 -r1.82 -r1.83 --- snaps.c 18 Feb 2005 18:03:58 -0000 1.82 +++ snaps.c 18 Feb 2005 18:44:44 -0000 1.83 @@ -441,33 +441,9 @@ static void SnapshotEwinRemove(EWin * ewin) { - Snapshot *sn; - if (ewin->snap) - { - sn = ewin->snap; - SnapshotEwinUnmatch(ewin); - sn = RemoveItem((char *)sn, 0, LIST_FINDBY_POINTER, LIST_TYPE_SNAPSHOT); - } - else - { - char buf[4096]; - - if (SnapEwinMakeID(ewin, buf, sizeof(buf))) - return; - sn = RemoveItem(buf, 0, LIST_FINDBY_BOTH, LIST_TYPE_SNAPSHOT); - } - - if (sn) - { - if (sn->name) - Efree(sn->name); - if (sn->border_name) - Efree(sn->border_name); - if (sn->groups) - Efree(sn->groups); - Efree(sn); - } + SnapshotDestroy(ewin->snap); + ewin->snap = NULL; } /* ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs