projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b4e20fd
)
ecore_poller: Fix unlikely crash if eo data is null
author
Jean-Philippe Andre
<jp.andre@samsung.com>
Thu, 1 Sep 2016 02:16:12 +0000
(11:16 +0900)
committer
Jean-Philippe Andre
<jp.andre@samsung.com>
Thu, 1 Sep 2016 02:57:43 +0000
(11:57 +0900)
This happened to me when running elm_suite manually.
src/lib/ecore/ecore_poller.c
patch
|
blob
|
history
diff --git
a/src/lib/ecore/ecore_poller.c
b/src/lib/ecore/ecore_poller.c
index
d1c645a
..
320b427
100644
(file)
--- a/
src/lib/ecore/ecore_poller.c
+++ b/
src/lib/ecore/ecore_poller.c
@@
-338,6
+338,7
@@
ecore_poller_del(Ecore_Poller *obj)
if (!obj) return NULL;
EINA_MAIN_LOOP_CHECK_RETURN_VAL(NULL);
Ecore_Poller_Data *poller = efl_data_scope_get(obj, MY_CLASS);
+ if (!poller) return NULL;
/* we are walking the poller list - a bad idea to remove from it while
* walking it, so just flag it as delete_me and come back to it after
* the loop has finished */