clean up the imlib_image

SVN revision: 5959
This commit is contained in:
rephorm 2002-02-20 04:19:21 +00:00 committed by rephorm
parent d5f6a3f256
commit daf36fd95d
1 changed files with 7 additions and 0 deletions

View File

@ -325,6 +325,13 @@ e_iconbar_icon_cleanup (E_Iconbar_Icon * ic)
/* if we have an imageobject. nuke it */
if (ic->image)
evas_del_object (ic->iconbar->view->evas, ic->image);
/* cleanup the imlib_image */
if (ic->imlib_image)
{
imlib_context_set_image(ic->imlib_image);
imlib_free_image();
}
/* free strings ... if they exist */
IF_FREE (ic->image_path);
IF_FREE (ic->exec);