diff options
author | Mathias Gumz <akira at fluxbox dot org> | 2010-05-16 12:25:59 (GMT) |
---|---|---|
committer | Mathias Gumz <akira at fluxbox dot org> | 2010-05-16 12:25:59 (GMT) |
commit | ff9c68e247704bd1522ea7a2055b7fa4b2b0c568 (patch) | |
tree | c86b8e2241b8684cd74f41cb3c81b07e5a063111 | |
parent | 17b21635a2c6abd20277dcd087a40785c5806abc (diff) | |
download | fluxbox_pavel-ff9c68e247704bd1522ea7a2055b7fa4b2b0c568.zip fluxbox_pavel-ff9c68e247704bd1522ea7a2055b7fa4b2b0c568.tar.bz2 |
fixed potential memory leak
-rw-r--r-- | src/FbTk/Shape.cc | 4 |
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 | ||