Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save bhackett1024/e9930e64507958821c27efd03c2fe480 to your computer and use it in GitHub Desktop.
Save bhackett1024/e9930e64507958821c27efd03c2fe480 to your computer and use it in GitHub Desktop.
diff --git a/xpcom/ds/nsHashPropertyBag.h b/xpcom/ds/nsHashPropertyBag.h
--- a/xpcom/ds/nsHashPropertyBag.h
+++ b/xpcom/ds/nsHashPropertyBag.h
@@ -32,7 +32,12 @@ class nsHashPropertyBagBase : public nsI
class nsHashPropertyBag : public nsHashPropertyBagBase {
public:
- nsHashPropertyBag() {}
+ nsHashPropertyBag() {
+ // FIXME
+ if (mozilla::recordreplay::IsRecordingOrReplaying()) {
+ AddRef();
+ }
+ }
NS_DECL_THREADSAFE_ISUPPORTS
protected:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment