Commit 59565c03 authored by David Reid's avatar David Reid

Fix a subtle memory leak.

parent 1bb4bc69
......@@ -7040,7 +7040,7 @@ early_exit:
} else {
/* Loading asynchronously. We may need to wait for initialization. */
if ((flags & MA_DATA_SOURCE_FLAG_WAIT_INIT) != 0) {
ma_resource_manager_inline_notification_wait_and_uninit(&initNotification);
ma_resource_manager_inline_notification_wait(&initNotification);
}
}
}
......@@ -7054,6 +7054,10 @@ done:
}
}
if ((flags & MA_DATA_SOURCE_FLAG_WAIT_INIT) != 0) {
ma_resource_manager_inline_notification_uninit(&initNotification);
}
*ppDataBufferNode = pDataBufferNode;
return result;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment