From 52c0bbc1c5b7df3b5e2282b0d8125754e40908a3 Mon Sep 17 00:00:00 2001 From: Ray Strode Date: Tue, 21 Oct 2008 09:10:07 -0400 Subject: [PATCH] Revert "Don't free...unless dest... refcount is 0" 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 | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/libply/ply-event-loop.c b/src/libply/ply-event-loop.c index a4a62e06..fe7edbcc 100644 --- a/src/libply/ply-event-loop.c +++ b/src/libply/ply-event-loop.c @@ -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