[at-spi2-core] Fix another crash when removing hung processes



commit bbf7d2ad1f4abeed634a58c26a0bb25200a5e92b
Author: Mike Gorse <mgorse suse com>
Date:   Fri Dec 7 10:27:58 2012 -0600

    Fix another crash when removing hung processes
    
    There was another instance where we were freeing the wrong data.

 registryd/deviceeventcontroller.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/registryd/deviceeventcontroller.c b/registryd/deviceeventcontroller.c
index 2aa415a..19c6df5 100644
--- a/registryd/deviceeventcontroller.c
+++ b/registryd/deviceeventcontroller.c
@@ -1192,7 +1192,7 @@ reset_hung_process (DBusPendingCall *pending, void *data)
     if (!strcmp (l->data, dest))
     {
       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]