No const modifier on memory which should be freed.

SVN revision: 26059
This commit is contained in:
sebastid 2006-09-23 10:53:50 +00:00 committed by sebastid
parent e018d6ae72
commit b37acd48bf
2 changed files with 9 additions and 9 deletions

View File

@ -211,7 +211,7 @@ extern "C"
EAPI int ecore_desktop_icon_init(void);
EAPI int ecore_desktop_icon_shutdown(void);
const char *ecore_desktop_icon_find(const char *icon,
EAPI char *ecore_desktop_icon_find(const char *icon,
const char *icon_size,
const char *icon_theme);

View File

@ -8,7 +8,7 @@
//#define DEBUG 1
static const char *_ecore_desktop_icon_find0(const char *icon,
static char *_ecore_desktop_icon_find0(const char *icon,
const char *icon_size,
const char *icon_theme);
@ -49,14 +49,14 @@ static Ecore_Hash *icon_theme_cache;
* @ingroup Ecore_Desktop_Icon_Group
*/
const char *
EAPI char *
ecore_desktop_icon_find(const char *icon, const char *icon_size,
const char *icon_theme)
{
const char *dir = NULL, *icn;
Ecore_List *icons;
int in_cache = 0;
double begin;
char *dir = NULL, *icn;
Ecore_List *icons;
int in_cache = 0;
double begin;
begin = ecore_time_get();
if (icon == NULL)
@ -75,7 +75,7 @@ ecore_desktop_icon_find(const char *icon, const char *icon_size,
if (!icons)
return NULL;
ecore_list_goto_first(icons);
while ((icn = (char *)ecore_list_next(icons)))
while ((icn = ecore_list_next(icons)))
{
char *ext;
#ifdef DEBUG
@ -121,7 +121,7 @@ ecore_desktop_icon_find(const char *icon, const char *icon_size,
* @param icon_theme The icon theme to search in.
* @return The full path to the found icon.
*/
static const char *
static char *
_ecore_desktop_icon_find0(const char *icon, const char *icon_size,
const char *icon_theme)
{