forked from enlightenment/efl
No const modifier on memory which should be freed.
SVN revision: 26059
This commit is contained in:
parent
e018d6ae72
commit
b37acd48bf
|
@ -211,7 +211,7 @@ extern "C"
|
||||||
|
|
||||||
EAPI int ecore_desktop_icon_init(void);
|
EAPI int ecore_desktop_icon_init(void);
|
||||||
EAPI int ecore_desktop_icon_shutdown(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_size,
|
||||||
const char *icon_theme);
|
const char *icon_theme);
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
//#define DEBUG 1
|
//#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_size,
|
||||||
const char *icon_theme);
|
const char *icon_theme);
|
||||||
|
|
||||||
|
@ -49,14 +49,14 @@ static Ecore_Hash *icon_theme_cache;
|
||||||
* @ingroup Ecore_Desktop_Icon_Group
|
* @ingroup Ecore_Desktop_Icon_Group
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const char *
|
EAPI char *
|
||||||
ecore_desktop_icon_find(const char *icon, const char *icon_size,
|
ecore_desktop_icon_find(const char *icon, const char *icon_size,
|
||||||
const char *icon_theme)
|
const char *icon_theme)
|
||||||
{
|
{
|
||||||
const char *dir = NULL, *icn;
|
char *dir = NULL, *icn;
|
||||||
Ecore_List *icons;
|
Ecore_List *icons;
|
||||||
int in_cache = 0;
|
int in_cache = 0;
|
||||||
double begin;
|
double begin;
|
||||||
|
|
||||||
begin = ecore_time_get();
|
begin = ecore_time_get();
|
||||||
if (icon == NULL)
|
if (icon == NULL)
|
||||||
|
@ -75,7 +75,7 @@ ecore_desktop_icon_find(const char *icon, const char *icon_size,
|
||||||
if (!icons)
|
if (!icons)
|
||||||
return NULL;
|
return NULL;
|
||||||
ecore_list_goto_first(icons);
|
ecore_list_goto_first(icons);
|
||||||
while ((icn = (char *)ecore_list_next(icons)))
|
while ((icn = ecore_list_next(icons)))
|
||||||
{
|
{
|
||||||
char *ext;
|
char *ext;
|
||||||
#ifdef DEBUG
|
#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.
|
* @param icon_theme The icon theme to search in.
|
||||||
* @return The full path to the found icon.
|
* @return The full path to the found icon.
|
||||||
*/
|
*/
|
||||||
static const char *
|
static char *
|
||||||
_ecore_desktop_icon_find0(const char *icon, const char *icon_size,
|
_ecore_desktop_icon_find0(const char *icon, const char *icon_size,
|
||||||
const char *icon_theme)
|
const char *icon_theme)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue