forked from enlightenment/efl
norti norti. very norti.
dont free list nodes and then proceed to use the list->next member of a freed list node! :) SVN revision: 11738
This commit is contained in:
parent
0d4c9b87ff
commit
7cd1fc87ce
|
@ -169,10 +169,10 @@ _ecore_signal_call(void)
|
|||
}
|
||||
e->pid = pid;
|
||||
e->exe = _ecore_exe_find(pid);
|
||||
|
||||
if (sigchld_info.si_signo)
|
||||
e->data = sigchld_info;
|
||||
|
||||
|
||||
if (sigchld_info.si_signo)
|
||||
e->data = sigchld_info;
|
||||
|
||||
_ecore_event_add(ECORE_EVENT_EXE_EXIT, e,
|
||||
_ecore_event_exe_exit_free, NULL);
|
||||
}
|
||||
|
|
|
@ -1233,8 +1233,11 @@ ecore_config_deaf(const char *name, const char *key,
|
|||
if (!(e = ecore_config_get(key)))
|
||||
return ECORE_CONFIG_ERR_NOTFOUND;
|
||||
|
||||
for (p = NULL, l = e->listeners; l; p = l, l = l->next)
|
||||
for (p = NULL, l = e->listeners; l; p = l)
|
||||
{
|
||||
Ecore_Config_Listener_List *nl;
|
||||
|
||||
nl = l->next;
|
||||
if ((name && !strcmp(l->name, name)) || (l->listener == listener))
|
||||
{
|
||||
ret = ECORE_CONFIG_ERR_SUCC;
|
||||
|
@ -1245,6 +1248,7 @@ ecore_config_deaf(const char *name, const char *key,
|
|||
memset(l, 0, sizeof(Ecore_Config_Listener));
|
||||
free(l);
|
||||
}
|
||||
l = nl;
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
|
Loading…
Reference in New Issue