mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
RFC: Fix a couple more dangling stack-allocated viewports
They could end up getting referenced after the stack has been popped. Change-Id: I12abbf3f436ecfde76a37f2623a044915800d2b2
This commit is contained in:
parent
99bf506407
commit
7f638e54ee
2 changed files with 12 additions and 2 deletions
|
@ -1062,7 +1062,15 @@ int gui_syncpitchscreen_run(void)
|
|||
new_speed = 0;
|
||||
}
|
||||
}
|
||||
|
||||
pcmbuf_set_low_latency(false);
|
||||
pop_current_activity();
|
||||
|
||||
/* Clean up */
|
||||
FOR_NB_SCREENS(i)
|
||||
{
|
||||
screens[i].set_viewport(NULL);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -1803,8 +1803,10 @@ rec_abort:
|
|||
rec_status &= ~RCSTAT_IN_RECSCREEN;
|
||||
sound_settings_apply();
|
||||
|
||||
FOR_NB_SCREENS(i)
|
||||
FOR_NB_SCREENS(i) {
|
||||
screens[i].set_viewport(NULL);
|
||||
screens[i].setfont(FONT_UI);
|
||||
}
|
||||
|
||||
/* if the directory was created or recording happened, make sure the
|
||||
browser is updated */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue