Fix memory leak in ConfigView and Dialog
Reviewers: #plasma, #frameworks, apol, davidedmundson Reviewed By: apol, davidedmundson Subscribers: kde-frameworks-devel Tags: #frameworks Differential Revision: https://phabricator.kde.org/D23339
This commit is contained in:
parent
6b8f114284
commit
4b93b71a49
@ -53,7 +53,7 @@ class ConfigViewPrivate
|
||||
{
|
||||
public:
|
||||
ConfigViewPrivate(Plasma::Applet *appl, ConfigView *view);
|
||||
~ConfigViewPrivate();
|
||||
~ConfigViewPrivate() = default;
|
||||
|
||||
void init();
|
||||
|
||||
|
@ -21,6 +21,7 @@
|
||||
#define CONFIGVIEW_H
|
||||
|
||||
#include <QQuickView>
|
||||
#include <QScopedPointer>
|
||||
|
||||
#include <plasmaquick/plasmaquick_export.h>
|
||||
|
||||
@ -81,7 +82,7 @@ protected:
|
||||
void resizeEvent(QResizeEvent *re) override;
|
||||
|
||||
private:
|
||||
ConfigViewPrivate *const d;
|
||||
QScopedPointer<ConfigViewPrivate> const d;
|
||||
|
||||
Q_PRIVATE_SLOT(d, void updateMinimumWidth())
|
||||
Q_PRIVATE_SLOT(d, void updateMinimumHeight())
|
||||
|
@ -24,6 +24,7 @@
|
||||
#include <QQuickWindow>
|
||||
#include <QPoint>
|
||||
#include <QQmlParserStatus>
|
||||
#include <QScopedPointer>
|
||||
|
||||
#include <Plasma/Plasma>
|
||||
#include <Plasma/Theme>
|
||||
@ -241,7 +242,7 @@ protected:
|
||||
|
||||
private:
|
||||
friend class DialogPrivate;
|
||||
DialogPrivate *const d;
|
||||
const QScopedPointer<DialogPrivate> d;
|
||||
|
||||
Q_PRIVATE_SLOT(d, void updateInputShape())
|
||||
Q_PRIVATE_SLOT(d, void updateTheme())
|
||||
|
Loading…
Reference in New Issue
Block a user