summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2013-09-30 14:15:37 +0100
committerTom Hacohen <tom@stosb.com>2013-09-30 14:15:37 +0100
commitf5d4a807c845f37f502882858a61ea018557365a (patch)
tree5d196860e3c7951baffca037c84722bb98cce56c /src
parent42d29b55e596313562c31cfe7d15402b51aa0d0c (diff)
Eo: Don't write to pointer after free.
Fixes coverity: CID 1039898.
Diffstat (limited to 'src')
-rw-r--r--src/lib/eo/eo_base_class.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/eo/eo_base_class.c b/src/lib/eo/eo_base_class.c
index 33f826a353..98a6a0d430 100644
--- a/src/lib/eo/eo_base_class.c
+++ b/src/lib/eo/eo_base_class.c
@@ -422,9 +422,9 @@ struct _Eo_Callback_Description
422static void 422static void
423_eo_callback_remove(Private_Data *pd, Eo_Callback_Description *cb) 423_eo_callback_remove(Private_Data *pd, Eo_Callback_Description *cb)
424{ 424{
425 Eo_Callback_Description *itr, *pitr; 425 Eo_Callback_Description *itr, *pitr = NULL;
426 426
427 itr = pitr = pd->callbacks; 427 itr = pd->callbacks;
428 if (pd->callbacks == cb) 428 if (pd->callbacks == cb)
429 pd->callbacks = cb->next; 429 pd->callbacks = cb->next;
430 430