1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 01:22:10 +01:00

Windows: Fix crash when unloading AutoScroll plugin

This commit is contained in:
David Rosca 2014-10-19 20:25:33 +02:00
parent 55b9f2c515
commit d29861fdff
2 changed files with 6 additions and 0 deletions

View File

@ -45,6 +45,11 @@ AutoScroller::AutoScroller(const QString &settingsFile, QObject* parent)
settings.endGroup();
}
AutoScroller::~AutoScroller()
{
delete m_indicator;
}
bool AutoScroller::mouseMove(QObject* obj, QMouseEvent* event)
{
Q_UNUSED(obj)

View File

@ -33,6 +33,7 @@ class AutoScroller : public QObject
Q_OBJECT
public:
explicit AutoScroller(const QString &settingsFile, QObject* parent = 0);
~AutoScroller();
bool mouseMove(QObject* obj, QMouseEvent* event);
bool mousePress(QObject* obj, QMouseEvent* event);