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
4 changes: 4 additions & 0 deletions framework/global/internal/baseapplication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,10 @@ void BaseApplication::doDestroyContext(const ContextData& data)
s->onDeinit();
}

for (modularity::IContextSetup* s : data.setups) {
s->onDestroy();
}

qDeleteAll(data.setups);

modularity::removeIoC(data.ctxId);
Expand Down
1 change: 1 addition & 0 deletions framework/global/modularity/imodulesetup.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ class IContextSetup
virtual void onInit(const IApplication::RunMode& mode) { (void)mode; }
virtual void onAllInited(const IApplication::RunMode& mode) { (void)mode; }
virtual void onDeinit() {}
virtual void onDestroy() {}

private:
ContextPtr m_ctx;
Expand Down