mirror of
https://github.com/astronautlevel2/Anemone3DS.git
synced 2026-01-24 00:32:43 -05:00
Fix another null dereference
This commit is contained in:
@@ -410,9 +410,12 @@ static bool load_icons(Entry_List_s * current_list, Handle mutex)
|
||||
int index = indexes[i];
|
||||
|
||||
C2D_Image * image = icons[index];
|
||||
if (icons[index] != NULL)
|
||||
{
|
||||
C3D_TexDelete(image->tex);
|
||||
free(image->tex);
|
||||
free(image);
|
||||
}
|
||||
|
||||
icons[index] = load_entry_icon(*current_entry);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user