summaryrefslogtreecommitdiff
path: root/editor/libeditor/StyleSheetTransactions.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
commitd773eca3316f2c99db9a1dd77929bcbd157eeacb (patch)
treebe0efc8413575e2db60480a9ba5991261929b144 /editor/libeditor/StyleSheetTransactions.h
parent1e55a5d9188b87da8632e217b238838effb1cdeb (diff)
downloaduxp-d773eca3316f2c99db9a1dd77929bcbd157eeacb.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/StyleSheetTransactions.h')
-rw-r--r--editor/libeditor/StyleSheetTransactions.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/libeditor/StyleSheetTransactions.h b/editor/libeditor/StyleSheetTransactions.h
index bf615b263d..d6855981be 100644
--- a/editor/libeditor/StyleSheetTransactions.h
+++ b/editor/libeditor/StyleSheetTransactions.h
@@ -36,7 +36,7 @@ public:
protected:
// The editor that created this transaction.
- nsIEditor* mEditor;
+ nsCOMPtr<nsIEditor> mEditor;
// The style sheet to add.
RefPtr<mozilla::StyleSheet> mSheet;
};
@@ -62,7 +62,7 @@ public:
protected:
// The editor that created this transaction.
- nsIEditor* mEditor;
+ nsCOMPtr<nsIEditor> mEditor;
// The style sheet to remove.
RefPtr<StyleSheet> mSheet;