[Commits] SDL_image: Fix memory leak in IMG_xcf.c

libsdl.org revision control commits-owner at libsdl.org
Fri Sep 28 20:55:55 PDT 2018


details:   https://hg.libsdl.org/SDL_image/rev/8b4ee1d72a2a
changeset: 590:8b4ee1d72a2a
user:      Michał Janiszewski <janisozaur+sdl2image at gmail.com>
date:      Wed Sep 26 22:53:30 2018 +0200
description:
Fix memory leak in IMG_xcf.c

diffstat:

 IMG_xcf.c |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r de1b4449f8a6 -r 8b4ee1d72a2a IMG_xcf.c
--- a/IMG_xcf.c	Fri Sep 28 02:21:04 2018 -0700
+++ b/IMG_xcf.c	Wed Sep 26 22:53:30 2018 +0200
@@ -860,6 +860,7 @@
       }
       free_xcf_channel (channel [i]);
     }
+    SDL_free(channel);
 
     SDL_FreeSurface (chs);
   }


More information about the commits mailing list