mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-03 02:25:34 +00: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
b50a25ed3d
commit
df5cd34a6e
@ -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