forked from enlightenment/enlightenment
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:
parent
9d68775725
commit
c6cbc0e22c
|
@ -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
|
||||
};
|
||||
|
||||
if (smart == NULL)
|
||||
smart = evas_smart_class_new(&sc);
|
||||
|
||||
return evas_object_smart_add(evas, smart);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue