summaryrefslogtreecommitdiff
path: root/editor/libeditor/CreateElementTransaction.h
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-02-07 21:36:37 +0100
committerwolfbeast <mcwerewolf@gmail.com>2018-02-07 21:36:37 +0100
commit2a7f7f1c6545499d206e6d8c95ee527a6aa5d781 (patch)
treebe0efc8413575e2db60480a9ba5991261929b144 /editor/libeditor/CreateElementTransaction.h
parent4fd4e3ade9cc9e05caea0a9fd388607cdbebe60d (diff)
downloaduxp-2a7f7f1c6545499d206e6d8c95ee527a6aa5d781.tar.gz
Edit transactions should store their editor instance with strong reference
Edit transactions should store their editor instance with a strong reference, and they should be released when the editor is destroyed.
Diffstat (limited to 'editor/libeditor/CreateElementTransaction.h')
-rw-r--r--editor/libeditor/CreateElementTransaction.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/libeditor/CreateElementTransaction.h b/editor/libeditor/CreateElementTransaction.h
index 70fecceaef..fd5abb8a86 100644
--- a/editor/libeditor/CreateElementTransaction.h
+++ b/editor/libeditor/CreateElementTransaction.h
@@ -57,7 +57,7 @@ protected:
virtual ~CreateElementTransaction();
// The document into which the new node will be inserted.
- EditorBase* mEditorBase;
+ RefPtr<EditorBase> mEditorBase;
// The tag (mapping to object type) for the new element.
nsCOMPtr<nsIAtom> mTag;