ecore: Fix memory leak and logic
authorJean-Philippe Andre <jp.andre@samsung.com>
Tue, 14 Mar 2017 13:28:50 +0000 (22:28 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Tue, 14 Mar 2017 13:38:43 +0000 (22:38 +0900)
@cedric... how could this even happen??

src/lib/ecore/ecore_events.c

index 96c48bb..24a76bf 100644 (file)
@@ -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;
      }