[pygobject/benzea/gio-asyncio: 1/2] unset cb




commit 95a819a475d74e8f17e05df2759f7d34e83964bf
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 e8587ac2..d9cdc6f4 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]
 


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