aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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