From: Jean-Philippe Andre Date: Tue, 14 Mar 2017 13:28:50 +0000 (+0900) Subject: ecore: Fix memory leak and logic X-Git-Tag: upstream/1.20.0~1700 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d14b6e3f84fc347313821248c7ac07d9c598d1d8;p=platform%2Fupstream%2Fefl.git ecore: Fix memory leak and logic @cedric... how could this even happen?? --- diff --git a/src/lib/ecore/ecore_events.c b/src/lib/ecore/ecore_events.c index 96c48bb..24a76bf 100644 --- a/src/lib/ecore/ecore_events.c +++ b/src/lib/ecore/ecore_events.c @@ -621,7 +621,7 @@ ecore_event_type_flush_internal(int type, ...) eina_inarray_push(&types, &type); // In case of an empty list of event - if (type != ECORE_EVENT_NONE) return ; + if (type == ECORE_EVENT_NONE) return; va_start(args, type); do @@ -637,7 +637,7 @@ ecore_event_type_flush_internal(int type, ...) { if (*itr >= 0 && *itr < event_id_max) continue; - ERR("Invalide event flush requested %i\n", *itr); + ERR("Invalid event flush requested: %i", *itr); wrong_type = EINA_TRUE; }