Fix another crash when removing hung processes
authorMike Gorse <mgorse@suse.com>
Fri, 7 Dec 2012 16:27:58 +0000 (10:27 -0600)
committerMike Gorse <mgorse@suse.com>
Fri, 7 Dec 2012 16:27:58 +0000 (10:27 -0600)
There was another instance where we were freeing the wrong data.

registryd/deviceeventcontroller.c

index 2aa415a..19c6df5 100644 (file)
@@ -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;
     }
   }