mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1058400 - Fix AppleCMLinker assertion. r=cpearce
We call Unlink() from the failure cleanup code in Link() when the dlopen call fails, so it's incorrect to assert that sLink is non-null. We've already incremented the refcount, so that check is fine.
This commit is contained in:
parent
0906ff6d40
commit
507f086661
@ -73,7 +73,7 @@ fail:
|
||||
AppleCMLinker::Unlink()
|
||||
{
|
||||
MOZ_ASSERT(NS_IsMainThread());
|
||||
MOZ_ASSERT(sLink && sRefCount > 0, "Unbalanced Unlink()");
|
||||
MOZ_ASSERT(sRefCount > 0, "Unbalanced Unlink()");
|
||||
--sRefCount;
|
||||
if (sLink && sRefCount < 1) {
|
||||
LOG("Unlinking CoreMedia framework.");
|
||||
|
@ -77,7 +77,7 @@ AppleVTLinker::Unlink()
|
||||
// reference count to avoidunloading our symbols when other
|
||||
// instances still need them.
|
||||
MOZ_ASSERT(NS_IsMainThread());
|
||||
MOZ_ASSERT(sLink && sRefCount > 0, "Unbalanced Unlink()");
|
||||
MOZ_ASSERT(sRefCount > 0, "Unbalanced Unlink()");
|
||||
--sRefCount;
|
||||
if (sLink && sRefCount < 1) {
|
||||
LOG("Unlinking VideoToolbox framework.");
|
||||
|
Loading…
Reference in New Issue
Block a user