summaryrefslogtreecommitdiff
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
parent1140ce2cd2b57e71dbb909a4262f024d50b57419 (diff)
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, ...)
621 eina_inarray_push(&types, &type); 621 eina_inarray_push(&types, &type);
622 622
623 // In case of an empty list of event 623 // In case of an empty list of event
624 if (type != ECORE_EVENT_NONE) return ; 624 if (type == ECORE_EVENT_NONE) return;
625 625
626 va_start(args, type); 626 va_start(args, type);
627 do 627 do
@@ -637,7 +637,7 @@ ecore_event_type_flush_internal(int type, ...)
637 { 637 {
638 if (*itr >= 0 && *itr < event_id_max) continue; 638 if (*itr >= 0 && *itr < event_id_max) continue;
639 639
640 ERR("Invalide event flush requested %i\n", *itr); 640 ERR("Invalid event flush requested: %i", *itr);
641 wrong_type = EINA_TRUE; 641 wrong_type = EINA_TRUE;
642 } 642 }
643 643