Fixed QApplication exit order.
SignalManager need be destroyed before QApplication to avoid memory
leak.
Reviewer: Hugo Parente Lima <hugo.lima@openbossa.org>,
Luciano Wolf <luciano.wolf@openbossa.org>
This commit is contained in:
parent
3468ba1eff
commit
2c937c6442
4 changed files with 16 additions and 3 deletions
|
|
@ -221,6 +221,12 @@ SignalManager::SignalManager() : m_d(new SignalManagerPrivate)
|
|||
TypeResolver::createValueTypeResolver<ushort>("ushort");
|
||||
}
|
||||
|
||||
void SignalManager::clear()
|
||||
{
|
||||
delete m_d;
|
||||
m_d = new SignalManagerPrivate();
|
||||
}
|
||||
|
||||
SignalManager::~SignalManager()
|
||||
{
|
||||
delete m_d;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue