From f071e8b44063307052650a0952e817bd6bdc57fe Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 9 Apr 2018 16:42:12 +0200 Subject: [PATCH] Solve more Clang static analysis warnings --- gfx/video_driver.c | 1 + menu/cbs/menu_cbs_deferred_push.c | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gfx/video_driver.c b/gfx/video_driver.c index 30fc5756c5..3c796f1659 100644 --- a/gfx/video_driver.c +++ b/gfx/video_driver.c @@ -1012,6 +1012,7 @@ static bool video_driver_init_internal(bool *video_is_threaded) video.rgb32 = video_driver_state_filter ? video_driver_state_out_rgb32 : (video_driver_pix_fmt == RETRO_PIXEL_FORMAT_XRGB8888); + video.parent = 0; /* Reset video frame count */ video_driver_frame_count = 0; diff --git a/menu/cbs/menu_cbs_deferred_push.c b/menu/cbs/menu_cbs_deferred_push.c index 6d29ea73d7..648caf0128 100644 --- a/menu/cbs/menu_cbs_deferred_push.c +++ b/menu/cbs/menu_cbs_deferred_push.c @@ -202,12 +202,15 @@ static int deferred_push_cursor_manager_list_deferred( if (!string_is_empty(info->path_b)) free(info->path_b); + if (!string_is_empty(info->path_c)) free(info->path_c); + + info->path_b = strdup(info->path); + if (!string_is_empty(info->path)) free(info->path); - info->path_b = strdup(info->path); info->path_c = strdup(query); info->path = strdup(rdb_path);