Skip to content
Permalink
Browse files
xcf: don't double-free a pointer on bogus data.
free_xcf_hierarchy() frees the same pointer that this code manually frees.
  • Loading branch information
icculus committed Jan 28, 2018
1 parent 0ea4c21 commit 5c6aabafd6a61bda554602eaa26e973274702ce3
Showing with 0 additions and 3 deletions.
  1. +0 −3 IMG_xcf.c
@@ -651,9 +651,6 @@ do_layer_surface(SDL_Surface * surface, SDL_RWops * src, xcf_header * head, xcf_
default:
SDL_Log("Unknown Gimp image type (%d)\n", head->image_type);
if (hierarchy) {
if (hierarchy->level_file_offsets)
SDL_free(hierarchy->level_file_offsets);

free_xcf_hierarchy(hierarchy);
}
if (level)

0 comments on commit 5c6aaba

Please sign in to comment.