elm: Fix obvious warning (leak / typo)
authorJean-Philippe Andre <jp.andre@samsung.com>
Tue, 21 Jun 2016 04:29:28 +0000 (13:29 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Tue, 21 Jun 2016 04:54:06 +0000 (13:54 +0900)
warning: ignoring return value of function declared with
warn_unused_result attribute [-Wunused-result]

Thanks GCC for pointing out the leak.

src/lib/elementary/elc_fileselector.c

index 34bce99..1944e9a 100644 (file)
@@ -1697,7 +1697,7 @@ cancel:
    eo_unref(obj);
    eo_unref(it_data->model);
    eo_unref(it_data->parent_model);
-   eina_stringshare_add(it_data->parent_path);
+   eina_stringshare_del(it_data->parent_path);
    free(it_data);
 }