diff gui/util/bitmap.c @ 33117:8db0a5bf65d9

Use bpFree() to free the bitmap structure.
author ib
date Mon, 04 Apr 2011 13:24:00 +0000
parents 00cea1a6740a
children ae464a957cd0
line wrap: on
line diff
--- a/gui/util/bitmap.c	Mon Apr 04 13:20:02 2011 +0000
+++ b/gui/util/bitmap.c	Mon Apr 04 13:24:00 2011 +0000
@@ -256,10 +256,8 @@
         if (b)
             out->Image[c] = tmp;
 
-        if (!shaped) {
-            free(out->Image);
-            out->Image = NULL;
-        }
+        if (!shaped)
+            bpFree(out);
     }
 
     return 1;