evry valgrinding: not sure if this is correct solution but evas_smart_class_new:35 leaked in one log

SVN revision: 80945
This commit is contained in:
Hannes Janetzek 2012-12-14 14:24:37 +00:00
parent 9d68775725
commit c6cbc0e22c
1 changed files with 5 additions and 2 deletions

View File

@ -626,7 +626,7 @@ _pan_add(Evas *evas)
static Evas_Smart *smart = NULL;
static const Evas_Smart_Class sc =
{
"wp_pan",
"evry_items",
EVAS_SMART_CLASS_VERSION,
_e_smart_add,
_e_smart_del,
@ -645,7 +645,10 @@ _pan_add(Evas *evas)
NULL,
NULL
};
smart = evas_smart_class_new(&sc);
if (smart == NULL)
smart = evas_smart_class_new(&sc);
return evas_object_smart_add(evas, smart);
}