aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/texteditor/basetexteditor.cpp
diff options
context:
space:
mode:
authorhjk <hjk121@nokiamail.com>2014-08-29 17:20:36 +0200
committerhjk <hjk121@nokiamail.com>2014-08-29 17:22:02 +0200
commit519aed8ff7f8d3c8655ef4c3ddd707ffd1294b1a (patch)
tree7994b8dd05b47a1ab2f608b7a6ed6db6475b432d /src/plugins/texteditor/basetexteditor.cpp
parentd5c6a360d0521b2690c897c23db8a23f21b3d0c6 (diff)
TextEditor: Prevent double deletion in fallback case
Introduced in ec5ea375e Change-Id: I246b82c7c8dadaea3374b1b019e7601c5a404fcb Reviewed-by: hjk <hjk121@nokiamail.com>
Diffstat (limited to 'src/plugins/texteditor/basetexteditor.cpp')
-rw-r--r--src/plugins/texteditor/basetexteditor.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/texteditor/basetexteditor.cpp b/src/plugins/texteditor/basetexteditor.cpp
index 0f22eb4c04..d43f9a4294 100644
--- a/src/plugins/texteditor/basetexteditor.cpp
+++ b/src/plugins/texteditor/basetexteditor.cpp
@@ -243,8 +243,10 @@ public:
~BaseTextEditorWidgetPrivate()
{
delete m_toolBar;
- if (m_editorIsFallBack)
+ if (m_editorIsFallBack) {
+ m_editor->m_widget = 0; // That's us.
delete m_editor;
+ }
}
void setupDocumentSignals();