Some stability fixes

This commit is contained in:
twinaphex 2018-01-23 03:23:49 +01:00
parent 7e56ecba4b
commit 27f34bf420
2 changed files with 3 additions and 1 deletions

View File

@ -489,6 +489,8 @@ static void png_reverse_filter_adam7_deinterlace_pass(uint32_t *data,
static void png_reverse_filter_deinit(struct rpng_process *pngp) static void png_reverse_filter_deinit(struct rpng_process *pngp)
{ {
if (!pngp)
return;
if (pngp->decoded_scanline) if (pngp->decoded_scanline)
free(pngp->decoded_scanline); free(pngp->decoded_scanline);
pngp->decoded_scanline = NULL; pngp->decoded_scanline = NULL;

View File

@ -874,7 +874,7 @@ static void xmb_render_messagebox_internal(
unsigned width = video_info->width; unsigned width = video_info->width;
unsigned height = video_info->height; unsigned height = video_info->height;
struct string_list *list = string_split(message, "\n"); struct string_list *list = string_split(message, "\n");
if (!list) if (!list || !xmb)
return; return;
if (list->elems == 0) if (list->elems == 0)