mirror of
https://gitlab.freedesktop.org/plymouth/plymouth.git
synced 2026-05-09 03:38:09 +02:00
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:
parent
ea15d24f3e
commit
52c0bbc1c5
1 changed files with 2 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue