mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 827841 - don't proxy-release null pointers in nsMainThreadPtrHolder; r=jlebar
This commit is contained in:
parent
f53866e76a
commit
9804a8333a
@ -117,7 +117,7 @@ public:
|
||||
~nsMainThreadPtrHolder() {
|
||||
if (NS_IsMainThread()) {
|
||||
NS_IF_RELEASE(mRawPtr);
|
||||
} else {
|
||||
} else if (mRawPtr) {
|
||||
nsCOMPtr<nsIThread> mainThread = do_GetMainThread();
|
||||
if (!mainThread) {
|
||||
NS_WARNING("Couldn't get main thread! Leaking pointer.");
|
||||
|
Loading…
Reference in New Issue
Block a user