Summary: | More than one "Previewer Output" component can appear at the same time. | ||
---|---|---|---|
Product: | [Plasma] Plasma SDK | Reporter: | Tianyu Zhu <tian.tian098> |
Component: | General | Assignee: | Plasma Bugs List <plasma-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | antonis.tsiapaliokas, giorgos.tsiapaliokas |
Priority: | NOR | ||
Version: | 1.0 | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | 1f726069f4c8bf1458042ec0dada70074788454b | Version Fixed In: | 1.1 |
Sentry Crash Report: | |||
Attachments: | Delete the old konsoleWidget when loading a new project. |
Description
Tianyu Zhu
2013-03-07 03:48:11 UTC
Created attachment 77824 [details]
Delete the old konsoleWidget when loading a new project.
Honestly, the code should be using some RAII object to handle resources like KonsolePreviewer. For example, had the new C++11 std::unique_ptr been used instead of a raw pointers, the old KonsolePreviwer would have been deleted (and not leaked!) automatically after the new one was created. Thank you for the patch. Can you open a review at git.reviewboard.kde.org? I would like to keep all the patches in the reviewboard since more people will be able to see the code and receive more feedback. |