If icon_class ends up being blank, then free and null it.

Thanks to jeffdameth for pointing out the problem.


SVN revision: 26240
This commit is contained in:
David Walter Seikel 2006-09-30 16:45:26 +00:00
parent 2190ed562a
commit 481c47b748
1 changed files with 5 additions and 0 deletions

View File

@ -413,6 +413,11 @@ _ecore_desktop_get(const char *file, const char *lang)
*p = tolower(*p);
p++;
}
if (result->icon_class[0] == '\0')
{
free(result->icon_class);
result->icon_class = NULL;
}
}
}