mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 927201 - Add null check before trying to close observer service. r=mrbkap
This commit is contained in:
parent
ee28fb74fe
commit
7bce2f0001
@ -66,7 +66,9 @@ nsDOMCameraManager::~nsDOMCameraManager()
|
|||||||
/* destructor code */
|
/* destructor code */
|
||||||
DOM_CAMERA_LOGT("%s:%d : this=%p\n", __func__, __LINE__, this);
|
DOM_CAMERA_LOGT("%s:%d : this=%p\n", __func__, __LINE__, this);
|
||||||
nsCOMPtr<nsIObserverService> obs = services::GetObserverService();
|
nsCOMPtr<nsIObserverService> obs = services::GetObserverService();
|
||||||
obs->RemoveObserver(this, "xpcom-shutdown");
|
if (obs) {
|
||||||
|
obs->RemoveObserver(this, "xpcom-shutdown");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
|
Loading…
Reference in New Issue
Block a user