From c6cbc0e22cf9682a24b194021dfa48701ccd177f Mon Sep 17 00:00:00 2001 From: Hannes Janetzek Date: Fri, 14 Dec 2012 14:24:37 +0000 Subject: [PATCH] evry valgrinding: not sure if this is correct solution but evas_smart_class_new:35 leaked in one log SVN revision: 80945 --- src/modules/everything/evry_view.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/modules/everything/evry_view.c b/src/modules/everything/evry_view.c index 61e1db4cd..a6f3bd7f0 100644 --- a/src/modules/everything/evry_view.c +++ b/src/modules/everything/evry_view.c @@ -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); }