mirror of
https://github.com/libretro/RetroArch
synced 2025-03-02 19:13:34 +00:00
Set anim.update_timecb to NULL immediately after menu driver's 'free'
function has been called
This commit is contained in:
parent
5334ddd199
commit
fb1258b817
@ -886,7 +886,6 @@ error:
|
||||
|
||||
if (menu)
|
||||
free(menu);
|
||||
p_anim->updatetime_cb = NULL;
|
||||
|
||||
return NULL;
|
||||
}
|
||||
@ -894,7 +893,6 @@ error:
|
||||
static void ozone_free(void *data)
|
||||
{
|
||||
ozone_handle_t *ozone = (ozone_handle_t*) data;
|
||||
gfx_animation_t *p_anim = anim_get_ptr();
|
||||
|
||||
if (ozone)
|
||||
{
|
||||
@ -921,8 +919,6 @@ static void ozone_free(void *data)
|
||||
video_driver_texture_unload(&gfx_display_white_texture);
|
||||
|
||||
font_driver_bind_block(NULL, NULL);
|
||||
|
||||
p_anim->updatetime_cb = NULL;
|
||||
}
|
||||
|
||||
static void ozone_update_thumbnail_image(void *data)
|
||||
|
@ -5395,14 +5395,12 @@ error:
|
||||
|
||||
if (menu)
|
||||
free(menu);
|
||||
p_anim->updatetime_cb = NULL;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static void rgui_free(void *data)
|
||||
{
|
||||
rgui_t *rgui = (rgui_t*)data;
|
||||
gfx_animation_t *p_anim = anim_get_ptr();
|
||||
|
||||
if (rgui)
|
||||
{
|
||||
@ -5426,8 +5424,6 @@ static void rgui_free(void *data)
|
||||
rgui_thumbnail_free(&rgui->fs_thumbnail);
|
||||
rgui_thumbnail_free(&rgui->mini_thumbnail);
|
||||
rgui_thumbnail_free(&rgui->mini_left_thumbnail);
|
||||
|
||||
p_anim->updatetime_cb = NULL;
|
||||
}
|
||||
|
||||
static void rgui_set_texture(void *data)
|
||||
|
@ -5771,14 +5771,12 @@ error:
|
||||
xmb_free_list_nodes(&xmb->horizontal_list, false);
|
||||
file_list_deinitialize(&xmb->selection_buf_old);
|
||||
file_list_deinitialize(&xmb->horizontal_list);
|
||||
p_anim->updatetime_cb = NULL;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static void xmb_free(void *data)
|
||||
{
|
||||
xmb_handle_t *xmb = (xmb_handle_t*)data;
|
||||
gfx_animation_t *p_anim = anim_get_ptr();
|
||||
|
||||
if (xmb)
|
||||
{
|
||||
@ -5803,8 +5801,6 @@ static void xmb_free(void *data)
|
||||
video_driver_texture_unload(&gfx_display_white_texture);
|
||||
|
||||
font_driver_bind_block(NULL, NULL);
|
||||
|
||||
p_anim->updatetime_cb = NULL;
|
||||
}
|
||||
|
||||
static void xmb_context_bg_destroy(xmb_handle_t *xmb)
|
||||
|
@ -5196,6 +5196,7 @@ bool menu_driver_ctl(enum rarch_menu_ctl_state state, void *data)
|
||||
if ( p_rarch->menu_driver_ctx
|
||||
&& p_rarch->menu_driver_ctx->free)
|
||||
p_rarch->menu_driver_ctx->free(p_rarch->menu_userdata);
|
||||
p_rarch->anim.updatetime_cb = NULL;
|
||||
|
||||
if (p_rarch->menu_userdata)
|
||||
free(p_rarch->menu_userdata);
|
||||
|
Loading…
x
Reference in New Issue
Block a user