mirror of
https://github.com/roytam1/UXP.git
synced 2026-05-26 13:58:49 +00:00
[DOM] Make IORunnable::mFilePickerParent into a RefPtr.
This commit is contained in:
@@ -286,6 +286,7 @@ FilePickerParent::RecvOpen(const int16_t& aSelectedType,
|
||||
}
|
||||
}
|
||||
|
||||
MOZ_ASSERT(!mCallback);
|
||||
mCallback = new FilePickerShownCallback(this);
|
||||
|
||||
mFilePicker->Open(mCallback);
|
||||
|
||||
@@ -69,7 +69,7 @@ class FilePickerParent : public PFilePickerParent
|
||||
|
||||
private:
|
||||
virtual ~FilePickerShownCallback() {}
|
||||
FilePickerParent* mFilePickerParent;
|
||||
RefPtr<FilePickerParent> mFilePickerParent;
|
||||
};
|
||||
|
||||
private:
|
||||
@@ -78,7 +78,7 @@ class FilePickerParent : public PFilePickerParent
|
||||
// This runnable is used to do some I/O operation on a separate thread.
|
||||
class IORunnable : public Runnable
|
||||
{
|
||||
FilePickerParent* mFilePickerParent;
|
||||
RefPtr<FilePickerParent> mFilePickerParent;
|
||||
nsTArray<nsCOMPtr<nsIFile>> mFiles;
|
||||
nsTArray<BlobImplOrString> mResults;
|
||||
nsCOMPtr<nsIEventTarget> mEventTarget;
|
||||
|
||||
Reference in New Issue
Block a user