[pygobject/benzea/gio-asyncio] unset cb



commit 86c6ac31fe85771fbc8e57c030c5723519357a26
Author: Benjamin Berg <bberg redhat com>
Date:   Thu Oct 28 10:34:59 2021 +0200

    unset cb

 gi/events.py | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/gi/events.py b/gi/events.py
index f3517789..bbf718d0 100644
--- a/gi/events.py
+++ b/gi/events.py
@@ -154,6 +154,7 @@ class EventLoop(asyncio.SelectorEventLoop):
                 source, _, _ = self.__signal_handlers[sig]
                 source.destroy()
                 # Make sure the GSource is finalized
+                source.set_callback(None)
                 del source
                 del self.__signal_handlers[sig]
                 import gc


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]