diff options
author | Vincent Sanders <vince@kyllikki.org> | 2017-03-03 19:34:11 +0000 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2017-03-03 19:34:11 +0000 |
commit | 30ccc0698422f09f231807b64c00cb35597f5a64 (patch) | |
tree | 1132571bf3be2d20bfdce74bd24e12d82c459a78 /frontends/amiga/icon.c | |
parent | 0a8976156a037bc2ec2d4d10f33334ada36eac9d (diff) | |
download | netsurf-30ccc0698422f09f231807b64c00cb35597f5a64.tar.gz netsurf-30ccc0698422f09f231807b64c00cb35597f5a64.tar.bz2 |
fix errors from cppcheck in amiga frontend
Diffstat (limited to 'frontends/amiga/icon.c')
-rw-r--r-- | frontends/amiga/icon.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/frontends/amiga/icon.c b/frontends/amiga/icon.c index 6521854ee..9de040d37 100644 --- a/frontends/amiga/icon.c +++ b/frontends/amiga/icon.c @@ -336,7 +336,10 @@ static ULONG *amiga_icon_convertcolouricon32(UBYTE *icondata, ULONG width, ULONG if (!argbicon) return(NULL); cmap=GetColorMap(pals1); - if(!cmap) return(NULL); + if(!cmap) { + free(argbicon); + return(NULL); + } for(i=0;i<(width*height);i++) { |