Changeset 93490 in webkit
- Timestamp:
- Aug 21, 2011 8:53:54 AM (13 years ago)
- Location:
- trunk/Source/WebKit/qt
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/qt/ChangeLog
r93303 r93490 1 2011-08-21 Lindsay Mathieson <lindsay.mathieson@gmail.com> 2 3 [Qt] Fixes premature plugin unload bug 4 https://bugs.webkit.org/show_bug.cgi?id=66628 5 6 Reviewed by Benjamin Poulain. 7 8 The QtPlatformPlugin was allocated on the stack, so its destructor is unloading the 9 plugin at the end of the scope. This patch moves the local creation of QtPlatformPlugin 10 to class member (TextCheckerClientQt::m_platformPlugin), preventing premature unloading 11 of plugin. 12 13 * WebCoreSupport/TextCheckerClientQt.cpp: 14 (WebCore::TextCheckerClientQt::loadSpellChecker): 15 * WebCoreSupport/TextCheckerClientQt.h: 16 1 17 2011-08-17 Adam Roben <aroben@apple.com> 2 18 -
trunk/Source/WebKit/qt/WebCoreSupport/TextCheckerClientQt.cpp
r93093 r93490 153 153 return true; 154 154 155 QtPlatformPlugin platformPlugin; 156 if ((m_spellChecker = platformPlugin.createSpellChecker())) 155 if ((m_spellChecker = m_platformPlugin.createSpellChecker())) 157 156 return true; 158 157 -
trunk/Source/WebKit/qt/WebCoreSupport/TextCheckerClientQt.h
r93093 r93490 30 30 #define TextCheckerClientQt_h 31 31 32 #include "QtPlatformPlugin.h" 32 33 #include "TextCheckerClient.h" 33 34 #include "qwebkitplatformplugin.h" … … 59 60 60 61 private: 62 QtPlatformPlugin m_platformPlugin; 61 63 OwnPtr<QWebSpellChecker> m_spellChecker; 62 64 };
Note: See TracChangeset
for help on using the changeset viewer.