Commit 445bc2c
committed
glib: destroy the _AuthLineSource explicitly
See https://gitlab.gnome.org/GNOME/pygobject/-/issues/525 for an
explanation, the summary is: we need to explicitly call source.destroy()
if dispatch returns GLib.SOURCE_REMOVE.
Deleting the source by resetting it to None causes invalid memory
accesses and eventual crashes.
This can be reproduced with a basic call to
bus = dbus_next.glib.MessageBus(bus_type=dbus_next.BusType.SESSION).connect_sync()
and a GLib.MainLoop() after this call. Run in valgrind --tool=memcheck.
Fixes #1131 parent b74742e commit 445bc2c
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
457 | 457 | | |
458 | 458 | | |
459 | 459 | | |
460 | | - | |
| 460 | + | |
461 | 461 | | |
462 | 462 | | |
463 | 463 | | |
| |||
0 commit comments