Skip to content

Commit 4463b92

Browse files
committed
service/polkit: add comment regarding signal soundness
1 parent be6cf07 commit 4463b92

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/services/polkit/session.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ void Session::respond(const QString& response) {
5757
}
5858

5959
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.
6063
if (session) {
6164
g_object_unref(session);
6265
session = nullptr;

0 commit comments

Comments
 (0)