diff options
author | William Wilgus <wilgus.william@gmail.com> | 2022-10-15 10:56:30 -0400 |
---|---|---|
committer | William Wilgus <wilgus.william@gmail.com> | 2022-10-15 10:56:30 -0400 |
commit | f3d679aefe7539620d1c494a156245fe8c6d7192 (patch) | |
tree | f48305789e62ca32a7855b75d63c1d0447c81a2e | |
parent | 12ef045fdf5a9e2b4d5618cc3b7ba50ecc0ccf69 (diff) | |
download | rockbox-f3d679aefe.tar.gz rockbox-f3d679aefe.zip |
skin_engine fix free pointer crash
skin_engine uses -1 to signify a free handle 0 causes crash
Change-Id: I1db8743c14dd244fe92973e31bac61efdd12ca7f
-rw-r--r-- | apps/gui/skin_engine/skin_parser.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/gui/skin_engine/skin_parser.c b/apps/gui/skin_engine/skin_parser.c index 26a251bb4b..bd9a202ec7 100644 --- a/apps/gui/skin_engine/skin_parser.c +++ b/apps/gui/skin_engine/skin_parser.c @@ -1830,6 +1830,7 @@ abort: wps_data->font_ids = PTRTOSKINOFFSET(skin_buffer, NULL); /* Safe if skin_buffer is NULL */ wps_data->images = PTRTOSKINOFFSET(skin_buffer, NULL); wps_data->buflib_handle = core_free(wps_data->buflib_handle); + wps_data->buflib_handle = -1; #endif } |