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:
42d29b5
)
Eo: Don't write to pointer after free.
author
Tom Hacohen
<tom@stosb.com>
Mon, 30 Sep 2013 13:15:37 +0000
(14:15 +0100)
committer
Tom Hacohen
<tom@stosb.com>
Mon, 30 Sep 2013 13:15:37 +0000
(14:15 +0100)
Fixes coverity: CID 1039898.
src/lib/eo/eo_base_class.c
patch
|
blob
|
history
diff --git
a/src/lib/eo/eo_base_class.c
b/src/lib/eo/eo_base_class.c
index
33f826a
..
98a6a0d
100644
(file)
--- a/
src/lib/eo/eo_base_class.c
+++ b/
src/lib/eo/eo_base_class.c
@@
-422,9
+422,9
@@
struct _Eo_Callback_Description
static void
_eo_callback_remove(Private_Data *pd, Eo_Callback_Description *cb)
{
- Eo_Callback_Description *itr, *pitr;
+ Eo_Callback_Description *itr, *pitr
= NULL
;
- itr = p
itr = p
d->callbacks;
+ itr = pd->callbacks;
if (pd->callbacks == cb)
pd->callbacks = cb->next;