aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-03-14 22:28:50 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-03-14 22:38:43 +0900
commitd14b6e3f84fc347313821248c7ac07d9c598d1d8 (patch)
treeee8840c42ec0f07b5ad5e30e4dfd122e63782bf9
parentrelease: Update NEWS and bump version for 1.19.0-beta3 release (diff)
downloadefl-d14b6e3f84fc347313821248c7ac07d9c598d1d8.tar.gz
ecore: Fix memory leak and logic
@cedric... how could this even happen??
-rw-r--r--src/lib/ecore/ecore_events.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/ecore/ecore_events.c b/src/lib/ecore/ecore_events.c
index 96c48bb93a..24a76bf457 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;
}