mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-01-22 01:30:35 -05:00
playlist: fix missing cleanup on OOM in playlist_resume()
Introduced by 3892773bd7, my fault for hitting merge
too quickly...
Change-Id: I18bbc3259a67664753a608a0175c59ee5a4241e0
This commit is contained in:
parent
3892773bd7
commit
ea49358cc6
1 changed files with 3 additions and 2 deletions
|
|
@ -3171,7 +3171,7 @@ int playlist_resume(void)
|
|||
if (handle < 0)
|
||||
{
|
||||
splashf(HZ * 2, "%s(): OOM", __func__);
|
||||
return -1;
|
||||
goto out_nolock;
|
||||
}
|
||||
|
||||
playlist_write_lock(playlist);
|
||||
|
|
@ -3535,8 +3535,9 @@ int playlist_resume(void)
|
|||
|
||||
out:
|
||||
playlist_write_unlock(playlist);
|
||||
dc_thread_start(playlist, true);
|
||||
|
||||
out_nolock:
|
||||
dc_thread_start(playlist, true);
|
||||
talk_buffer_set_policy(TALK_BUFFER_DEFAULT);
|
||||
core_free(handle);
|
||||
cpu_boost(false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue