mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-15 08:53:07 +09:00
[DOM] Make IORunnable::mFilePickerParent into a RefPtr.
This commit is contained in:
parent
613cd8f4cb
commit
0359d8a9e7
2 changed files with 3 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue