Skip to content
Commit 2b81818b authored by Dmitry Kazakov's avatar Dmitry Kazakov
Browse files

Fix memory leak in 'Ui' classes

Auto-generated QtDesigner form is supposed to be used as a parent
for our class, not as a member. Therefore, it never belongs to QObject
hierarchy, and therefore, is never auto-deleted. If you add autogenerated
Ui class as a member, don't forget to make it QScopedPointer to make sure
it is deleted on widget destruction.

CC:kimageshop@kde.org
parent bfc93d75
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment