From 2a7f7f1c6545499d206e6d8c95ee527a6aa5d781 Mon Sep 17 00:00:00 2001 From: wolfbeast Date: Wed, 7 Feb 2018 21:36:37 +0100 Subject: 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. --- editor/libeditor/CreateElementTransaction.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'editor/libeditor/CreateElementTransaction.h') 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 mEditorBase; // The tag (mapping to object type) for the new element. nsCOMPtr mTag; -- cgit v1.2.3