Evas: Filter: No need to allocate on a getter.
authornash <nash@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 21 Apr 2011 06:01:50 +0000 (06:01 +0000)
committernash <nash@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 21 Apr 2011 06:01:50 +0000 (06:01 +0000)
Just return the default.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@58773 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/canvas/evas_filter.c

index 22db8d2..3c59404 100644 (file)
@@ -165,7 +165,6 @@ evas_object_filter_mode_get(Evas_Object *o)
    return EVAS_FILTER_MODE_OBJECT;
    MAGIC_CHECK_END();
 
-   if (!o->filter) filter_alloc(o);
    if (!o->filter) return EVAS_FILTER_MODE_OBJECT;
    return o->filter->mode;
 }