diff options
author | Leo Howell <leo@lwh.jp> | 2009-09-27 16:31:03 +0900 |
---|---|---|
committer | Leo Howell <leo@lwh.jp> | 2009-09-27 16:31:03 +0900 |
commit | 559eb9633e1f97d70112f02538ae5e9a0e46f4d5 (patch) | |
tree | 78d3ce4998fc9cf60f55162c16323a415d47a57b /lpg/libqr/code-common.c | |
parent | 24e968c84075344de2b6b31dc054bfe988eacd04 (diff) | |
download | pdf-simple-sign-559eb9633e1f97d70112f02538ae5e9a0e46f4d5.tar.gz pdf-simple-sign-559eb9633e1f97d70112f02538ae5e9a0e46f4d5.tar.xz pdf-simple-sign-559eb9633e1f97d70112f02538ae5e9a0e46f4d5.zip |
bitmap handling routines
Diffstat (limited to 'lpg/libqr/code-common.c')
-rw-r--r-- | lpg/libqr/code-common.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lpg/libqr/code-common.c b/lpg/libqr/code-common.c index 25c1115..32f6492 100644 --- a/lpg/libqr/code-common.c +++ b/lpg/libqr/code-common.c @@ -2,11 +2,14 @@ #include <qr/code.h> #include "code-common.h" +#include "qr-bitmap.h" void qr_code_destroy(struct qr_code * code) { - free(code->modules); - free(code); + if (code) { + qr_bitmap_destroy(code->modules); + free(code); + } } int qr_code_width(const struct qr_code * code) |