# HG changeset patch # User ib # Date 1301923440 0 # Node ID 8db0a5bf65d915d7555f1e3b7acdf981aa1f1527 # Parent 00cea1a6740ab55e9909615f6165aaee70b4d01b Use bpFree() to free the bitmap structure. diff -r 00cea1a6740a -r 8db0a5bf65d9 gui/util/bitmap.c --- 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;