summaryrefslogtreecommitdiff
path: root/frontends/amiga/icon.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2017-03-03 19:34:11 +0000
committerVincent Sanders <vince@kyllikki.org>2017-03-03 19:34:11 +0000
commit30ccc0698422f09f231807b64c00cb35597f5a64 (patch)
tree1132571bf3be2d20bfdce74bd24e12d82c459a78 /frontends/amiga/icon.c
parent0a8976156a037bc2ec2d4d10f33334ada36eac9d (diff)
downloadnetsurf-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.c5
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++)
{