mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2025-02-27 11:14:40 +01:00
fix mutex not being unlocked if malloc fails
This commit is contained in:
parent
14a02d4002
commit
d9600b1cd7
1 changed files with 1 additions and 0 deletions
|
@ -449,6 +449,7 @@ zathura_render_request(ZathuraRenderRequest* request, gint64 last_view_time)
|
|||
|
||||
render_job_t* job = g_try_malloc0(sizeof(render_job_t));
|
||||
if (job == NULL) {
|
||||
g_mutex_unlock(&request_priv->jobs_mutex);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue