Diffusion Krita c17e3493f10b

Fix a bunch of memory leaks in KisPopupPalette (+cleanup)

Authored by gladhorn on Nov 5 2016, 2:52 PM.

Description

Fix a bunch of memory leaks in KisPopupPalette (+cleanup)

Summary:

  • Reduce duplicate initializations (initializer lists are always

preferable).

  • Initialize a few variables that were not initialized before

(m_hovered_Preset, ...)

Allocate QRect on the stack, heap allocations are expensive and were
mostly leaked.

Reviewers: Krita, scottpetrovic

Subscribers: rempt

Differential Revision: https://phabricator.kde.org/D3266

Details