From 209ba1f44ce2a02e1db946be7c708c19d4183e67 Mon Sep 17 00:00:00 2001 From: David Rosca Date: Mon, 4 Apr 2016 21:14:40 +0200 Subject: [PATCH] PluginProxy: Remove plugin from wheel handlers on unload Fixes crash when unloading AutoScroll plugin Closes #1916 --- src/lib/plugins/pluginproxy.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/plugins/pluginproxy.cpp b/src/lib/plugins/pluginproxy.cpp index 2482b002d..b536259a9 100644 --- a/src/lib/plugins/pluginproxy.cpp +++ b/src/lib/plugins/pluginproxy.cpp @@ -1,6 +1,6 @@ /* ============================================================ * QupZilla - WebKit based browser -* Copyright (C) 2010-2014 David Rosca +* Copyright (C) 2010-2016 David Rosca * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -84,6 +84,7 @@ void PluginProxy::pluginUnloaded(PluginInterface* plugin) m_mousePressHandlers.removeOne(plugin); m_mouseReleaseHandlers.removeOne(plugin); m_mouseMoveHandlers.removeOne(plugin); + m_wheelEventHandlers.removeOne(plugin); m_keyPressHandlers.removeOne(plugin); m_keyReleaseHandlers.removeOne(plugin);