Skip to content

frontend: Disconnect dbus signals to avoid use-after-free#90

Merged
tillkamppeter merged 1 commit intoOpenPrinting:masterfrom
aleasto:dbus
Mar 12, 2026
Merged

frontend: Disconnect dbus signals to avoid use-after-free#90
tillkamppeter merged 1 commit intoOpenPrinting:masterfrom
aleasto:dbus

Conversation

@aleasto
Copy link
Copy Markdown

@aleasto aleasto commented Mar 12, 2026

cpdbDeletePrinterObj() free's the struct passed to the GDBus signal handlers without making sure that these are not going to be called anymore.

g_dbus_connection_close_sync() is not enough because there may have bene signals already received and awaiting to be dispatched in the next iteration of the mainloop.

cpdbDeletePrinterObj() free's the struct passed to the GDBus signal handlers
without making sure that these are not going to be called anymore.

g_dbus_connection_close_sync() is not enough because there may have bene
signals already received and awaiting to be dispatched in the next iteration
of the mainloop.
@tillkamppeter tillkamppeter merged commit 33a9e80 into OpenPrinting:master Mar 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants