aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMathias Gumz <akira at fluxbox dot org>2010-05-16 12:25:59 (GMT)
committerMathias Gumz <akira at fluxbox dot org>2010-05-16 12:25:59 (GMT)
commitff9c68e247704bd1522ea7a2055b7fa4b2b0c568 (patch)
treec86b8e2241b8684cd74f41cb3c81b07e5a063111 /src
parent17b21635a2c6abd20277dcd087a40785c5806abc (diff)
downloadfluxbox_paul-ff9c68e247704bd1522ea7a2055b7fa4b2b0c568.zip
fluxbox_paul-ff9c68e247704bd1522ea7a2055b7fa4b2b0c568.tar.bz2
fixed potential memory leak
Diffstat (limited to 'src')
-rw-r--r--src/FbTk/Shape.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/FbTk/Shape.cc b/src/FbTk/Shape.cc
index 91ecffc..c0489ec 100644
--- a/src/FbTk/Shape.cc
+++ b/src/FbTk/Shape.cc
@@ -77,8 +77,10 @@ Pixmap makePixmap(FbWindow &drawable, const unsigned char rows[]) {
77 data, 77 data,
78 8, 8, 78 8, 8,
79 32, 0); 79 32, 0);
80 if (ximage == 0) 80 if (ximage == 0) {
81 free(data);
81 return 0; 82 return 0;
83 }
82 84
83 XInitImage(ximage); 85 XInitImage(ximage);
84 86