mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1035394 - Fix dangerous public destructors in content/media/eme - r=cpearce
This commit is contained in:
parent
2ba4f21e5a
commit
325432ff7c
@ -27,8 +27,8 @@ class MediaKeyMessageEvent MOZ_FINAL : public Event
|
||||
public:
|
||||
NS_DECL_ISUPPORTS_INHERITED
|
||||
NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS_INHERITED(MediaKeyMessageEvent, Event)
|
||||
virtual ~MediaKeyMessageEvent();
|
||||
protected:
|
||||
virtual ~MediaKeyMessageEvent();
|
||||
MediaKeyMessageEvent(EventTarget* aOwner);
|
||||
|
||||
JS::Heap<JSObject*> mMessage;
|
||||
|
@ -27,8 +27,8 @@ class MediaKeyNeededEvent MOZ_FINAL : public Event
|
||||
public:
|
||||
NS_DECL_ISUPPORTS_INHERITED
|
||||
NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS_INHERITED(MediaKeyNeededEvent, Event)
|
||||
virtual ~MediaKeyNeededEvent();
|
||||
protected:
|
||||
virtual ~MediaKeyNeededEvent();
|
||||
MediaKeyNeededEvent(EventTarget* aOwner);
|
||||
|
||||
nsString mInitDataType;
|
||||
|
@ -43,8 +43,6 @@ public:
|
||||
|
||||
void Init(const nsAString& aSessionId);
|
||||
|
||||
~MediaKeySession();
|
||||
|
||||
virtual JSObject* WrapObject(JSContext* aCx) MOZ_OVERRIDE;
|
||||
|
||||
// Mark this as resultNotAddRefed to return raw pointers
|
||||
@ -77,6 +75,8 @@ public:
|
||||
bool IsClosed() const;
|
||||
|
||||
private:
|
||||
~MediaKeySession();
|
||||
|
||||
nsRefPtr<Promise> mClosed;
|
||||
|
||||
nsRefPtr<MediaKeyError> mMediaKeyError;
|
||||
|
Loading…
Reference in New Issue
Block a user