]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
Revert "Don't free...unless dest... refcount is 0"
authorRay Strode <rstrode@redhat.com>
Tue, 21 Oct 2008 13:10:07 +0000 (09:10 -0400)
committerRay Strode <rstrode@redhat.com>
Tue, 21 Oct 2008 13:10:07 +0000 (09:10 -0400)
This reverts commit
5c151fb52d5445352c04b24ac85964744ba00b37, because
the condition check is already enforced by an
assertion higher up in the code.

src/libply/ply-event-loop.c

index a4a62e065ee373cb18ab1d55d442a7f5f28b51b0..fe7edbccd52565c468c75263055d23c08c5e687d 100644 (file)
@@ -1116,11 +1116,8 @@ ply_event_loop_disconnect_source (ply_event_loop_t           *loop,
   ply_event_loop_free_destinations_for_source (loop, source);
   assert (ply_list_get_length (source->destinations) == 0);
 
-  if (ply_list_get_length (source->destinations) == 0)
-    {
-      ply_event_loop_remove_source (loop, source);
-      ply_event_source_free (source);
-    }
+  ply_event_loop_remove_source (loop, source);
+  ply_event_source_free (source);
 }
 
 static void