Revert "Don't free...unless dest... refcount is 0"

This reverts commit
5c151fb52d, because
the condition check is already enforced by an
assertion higher up in the code.
This commit is contained in:
Ray Strode 2008-10-21 09:10:07 -04:00
parent ea15d24f3e
commit 52c0bbc1c5

View 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