e: fix memleaks

SVN revision: 47972
This commit is contained in:
Sebastian Dransfeld 2010-04-12 19:54:57 +00:00
parent 807073f299
commit 6db513e6f5
4 changed files with 8 additions and 8 deletions

View File

@ -111,11 +111,11 @@ _gc_icon(E_Gadcon_Client_Class *cc, Evas *evas)
static const char *
_gc_id_new(E_Gadcon_Client_Class *cc)
{
char buff[PATH_MAX];
static char buff[32];
snprintf(buff, sizeof(buff), "%s.%d", _gc_class.name,
eina_list_count(instances));
return strdup(buff);
return buff;
}
static int

View File

@ -262,11 +262,11 @@ _gc_icon(E_Gadcon_Client_Class *cc, Evas *evas)
static const char *
_gc_id_new(E_Gadcon_Client_Class *cc)
{
char buff[PATH_MAX];
static char buff[32];
snprintf(buff, sizeof(buff), "%s.%d", _gc_class.name,
eina_list_count(instances));
return strdup(buff);
return buff;
}
static void

View File

@ -135,11 +135,11 @@ _gc_icon(E_Gadcon_Client_Class *cc, Evas *evas)
static const char *
_gc_id_new(E_Gadcon_Client_Class *cc)
{
char buff[PATH_MAX];
static char buff[32];
snprintf(buff, sizeof(buff), "%s.%d", _gc_class.name,
eina_list_count(instances));
return strdup(buff);
return buff;
}
static void

View File

@ -122,11 +122,11 @@ _gc_icon(E_Gadcon_Client_Class *cc, Evas *evas)
static const char *
_gc_id_new(E_Gadcon_Client_Class *cc)
{
char buff[PATH_MAX];
static char buff[32];
snprintf(buff, sizeof(buff), "%s.%d", _gc_class.name,
eina_list_count(instances));
return strdup(buff);
return buff;
}
static void