Skip to content

Commit

Permalink
WebUI: delete APIControllers on session end/expiration
Browse files Browse the repository at this point in the history
  • Loading branch information
dyseg committed Oct 15, 2024
1 parent 8e941a0 commit 66b2781
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/webui/webapplication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -919,6 +919,11 @@ WebSession::WebSession(const QString &sid, IApplication *app)
updateTimestamp();
}

WebSession::~WebSession()
{
qDeleteAll(m_apiControllers);
}

QString WebSession::id() const
{
return m_sid;
Expand Down
1 change: 1 addition & 0 deletions src/webui/webapplication.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ class WebSession final : public ApplicationComponent<QObject>, public ISession
{
public:
explicit WebSession(const QString &sid, IApplication *app);
~WebSession() override;

QString id() const override;

Expand Down

0 comments on commit 66b2781

Please sign in to comment.