Skip to content
Commit 80f4f0d5 authored by Jonas Ådahl's avatar Jonas Ådahl Committed by Kristian Høgsberg
Browse files

event-loop: Use two-step destruction of event loop sources.



Instead of directly freeing an event source upon removal put it in a
queue later handled by the event loop; either after a dispatch or upon
event loop destruction.

This is necessary to avoid already queued up event sources to be freed
during some other dispatch callback, causing segmentation faults when
the event loop later tries to handle an event from the freed source.

Signed-off-by: default avatarJonas Ådahl <jadahl@gmail.com>
parent f48bd071
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment