SVN revision: 19566
This commit is contained in:
Carsten Haitzler 2006-01-06 18:06:23 +00:00
parent f85e3b839c
commit 5ff5b1a64b
1 changed files with 2 additions and 2 deletions

View File

@ -84,13 +84,13 @@ EAPI void ecore_string_release(const char *string)
CHECK_PARAM_POINTER("string", string);
str = ecore_hash_get(ecore_strings, string);
str = ecore_hash_get(ecore_strings, (char *)string);
if (!str)
return;
str->references--;
if (str->references < 1) {
ecore_hash_remove(ecore_strings, string);
ecore_hash_remove(ecore_strings, (char *)string);
FREE(str->string);
FREE(str);
}