evry valgrinding: not sure if this is correct solution but evas_smart_class_new:35...
authorHannes Janetzek <hannes.janetzek@gmail.com>
Fri, 14 Dec 2012 14:24:37 +0000 (14:24 +0000)
committerHannes Janetzek <hannes.janetzek@gmail.com>
Fri, 14 Dec 2012 14:24:37 +0000 (14:24 +0000)
SVN revision: 80945

src/modules/everything/evry_view.c

index 61e1db4..a6f3bd7 100644 (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);
 }