Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/daemon/Display.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ namespace DDM {
SocketWriter writer(socket);
for (Auth *auth : loginedSession()) {
if (auth->isActive())
writer << quint32(DaemonMessages::UserLoggedIn) << auth->user();
writer << quint32(DaemonMessages::UserLoggedIn) << auth->user() << auth->xdgSessionId();
}
}

Expand Down
2 changes: 0 additions & 2 deletions src/daemon/TreelandConnector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,6 @@ bool TreelandConnector::isConnected() {
}

void TreelandConnector::setPrivateObject(struct treeland_ddm *ddm) {
if (m_ddm)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue (bug_risk): Clarify ownership/lifetime of m_ddm now that the previous instance is no longer destroyed.

By removing treeland_ddm_destroy(m_ddm), m_ddm’s ownership semantics change. If setPrivateObject is called more than once, previous instances will not be destroyed here, which can cause leaks or multiple live instances unless another owner handles cleanup. Please confirm whether ownership is intentionally transferred elsewhere and that callers are not depending on setPrivateObject to free the old object.

treeland_ddm_destroy(m_ddm);
m_ddm = ddm;
}

Expand Down