We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be6cf07 commit 4463b92Copy full SHA for 4463b92
src/services/polkit/session.cpp
@@ -57,6 +57,9 @@ void Session::respond(const QString& response) {
57
}
58
59
void Session::destroy() {
60
+ // Signals do not need to be disconnected explicitly. This happens during
61
+ // destruction of the gobject. Since we own the session object, we can be
62
+ // sure it is being destroyed after the unref.
63
if (session) {
64
g_object_unref(session);
65
session = nullptr;
0 commit comments