Summary: | Memory leak in KLineEdit | ||
---|---|---|---|
Product: | [Unmaintained] kdelibs | Reporter: | Joris Guisson <joris.guisson> |
Component: | kdeui | Assignee: | kdelibs bugs <kdelibs-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | 4.5 | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Joris Guisson
2010-10-24 16:31:44 UTC
SVN commit 1190023 by aseigo: clean up the style created by the widget; the style itself doesn't set a parent widget. i believe this is due to the usual semantics of QStyle which is to be shared amongst widgets, making automatic QObject based deletion non-standard and even dangerous for QStyles. in this case, though, it does need to be deleted as there is a 1:1 relationship between the line edit and the style object. so to keep memory from leaking and to keep with the usual QStyle semantics, leave it up to KLineEdit to clean it up. KLineEdit unit tests still pass after this commit. thanks to Joris Guisson for the valgrinding and reporting. BUG:255118 M +1 -0 klineedit.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1190023 Nice, a quick fix |