mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1195058 - Handle pa_context_new returning NULL in OOM situations. r=padenot
This commit is contained in:
parent
2e4d980eea
commit
5c6f79720b
@ -318,6 +318,9 @@ pulse_context_init(cubeb * ctx)
|
||||
|
||||
ctx->context = WRAP(pa_context_new)(WRAP(pa_threaded_mainloop_get_api)(ctx->mainloop),
|
||||
ctx->context_name);
|
||||
if (!ctx->context) {
|
||||
return -1;
|
||||
}
|
||||
WRAP(pa_context_set_state_callback)(ctx->context, context_state_callback, ctx);
|
||||
|
||||
WRAP(pa_threaded_mainloop_lock)(ctx->mainloop);
|
||||
|
Loading…
Reference in New Issue
Block a user