diff options
author | Tobias Markmann <tm@ayena.de> | 2015-07-13 13:18:19 (GMT) |
---|---|---|
committer | Tobias Markmann <tm@ayena.de> | 2015-07-14 08:14:37 (GMT) |
commit | 0cfa934c4c0323cc9e8e1431f25a05977e3670a6 (patch) | |
tree | 5c10d9147e5931a16bfc771cff7b6797d9b58c54 /Swiften/Parser/PayloadParsers/UnitTest/StreamInitiationParserTest.cpp | |
parent | cb8a1c43ff96c1d82c8ba1d30e210135303bbe26 (diff) | |
download | swift-0cfa934c4c0323cc9e8e1431f25a05977e3670a6.zip swift-0cfa934c4c0323cc9e8e1431f25a05977e3670a6.tar.bz2 |
Fix memory leak in QtUserSearchWindow
The delegate was not correctly freed and was leaking across
login/logout sessions.
Setting the parent of the delegate during initialization, so it
will be freed by Qt when the QtUserSearchWindow is freed.
Delegated the deallocation to Qt, because it has to be freed
after the widget that uses the delegate is freed.
Test-Information:
The leak was reported by Valgrind. Verified with Valgrind that
this commit fixes the leak and is not reported anymore.
Change-Id: Ib48d2628577433bce82103b3f14cbd11d733b7ac
Diffstat (limited to 'Swiften/Parser/PayloadParsers/UnitTest/StreamInitiationParserTest.cpp')
0 files changed, 0 insertions, 0 deletions