Skip to content
  • Michael Gratton's avatar
    Prevent circular refs using idle and timeout manager when running · 91cb3780
    Michael Gratton authored and Michael Gratton's avatar Michael Gratton committed
    If an IdleManager or TimeoutManager had been scheduled, it would not get
    destroyed until it was executed by the main loop, causing criticals
    if the objects enclosed by its callback had been destroyed.
    
    This adds a weak reference to the manager object itself when scheduling
    on the main loop, so it can get safely dropped.
    91cb3780