From: nash Date: Thu, 21 Apr 2011 06:01:50 +0000 (+0000) Subject: Evas: Filter: No need to allocate on a getter. X-Git-Tag: accepted/2.0/20130306.225542~242^2~768 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ebda2bce341c2bf4162d1206868d51963ce116ae;p=profile%2Fivi%2Fevas.git Evas: Filter: No need to allocate on a getter. Just return the default. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@58773 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/canvas/evas_filter.c b/src/lib/canvas/evas_filter.c index 22db8d2..3c59404 100644 --- a/src/lib/canvas/evas_filter.c +++ b/src/lib/canvas/evas_filter.c @@ -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; }