[at-spi2-core] Remove the correct datum when clearing a hung process
- From: Mike Gorse <mgorse src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [at-spi2-core] Remove the correct datum when clearing a hung process
- Date: Thu, 6 Dec 2012 15:49:12 +0000 (UTC)
commit c3ec6dc427d1c66e4d42fb82938c4534455b15f2
Author: Mike Gorse <mgorse suse com>
Date: Thu Dec 6 09:50:18 2012 -0600
Remove the correct datum when clearing a hung process
When clearing hung processes, we were passing the wrong variable to
g_list_remove, meaning that the datum would never be removed from the
list, even though it had been freed, resulting in a crash.
registryd/deviceeventcontroller.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/registryd/deviceeventcontroller.c b/registryd/deviceeventcontroller.c
index 2d5a894..2aa415a 100644
--- a/registryd/deviceeventcontroller.c
+++ b/registryd/deviceeventcontroller.c
@@ -1218,7 +1218,7 @@ reset_hung_process_from_ping (DBusPendingCall *pending, void *data)
if (!strcmp (l->data, data))
{
g_free (l->data);
- hung_processes = g_slist_remove (hung_processes, data);
+ hung_processes = g_slist_remove (hung_processes, l->data);
break;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]