free closest.

SVN revision: 26057
This commit is contained in:
sebastid 2006-09-23 10:34:23 +00:00 committed by sebastid
parent 2a42c7e2f5
commit f8ecb984da
1 changed files with 6 additions and 1 deletions

View File

@ -258,7 +258,11 @@ _ecore_desktop_icon_find0(const char *icon, const char *icon_size,
{
/* Fall back strategy #1, look for closest size in this theme. */
found = closest;
if (found) goto done;
if (found)
{
closest = NULL;
goto done;
}
/* Fall back strategy #2, Try again with the parent themes. */
if ((theme->Inherits) && (strcmp(icon_theme, "hicolor") != 0))
@ -306,6 +310,7 @@ _ecore_desktop_icon_find0(const char *icon, const char *icon_size,
}
done:
if (closest) free(closest);
ecore_desktop_icon_theme_destroy(theme);
return found;