summaryrefslogtreecommitdiffstats
path: root/tight.c
diff options
context:
space:
mode:
Diffstat (limited to 'tight.c')
-rw-r--r--tight.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/tight.c b/tight.c
index 4bbdd11..05e7aed 100644
--- a/tight.c
+++ b/tight.c
@@ -115,6 +115,17 @@ static char *tightAfterBuf = NULL;
static int *prevRowBuf = NULL;
+void TightCleanup()
+{
+ if(tightBeforeBufSize) {
+ free(tightBeforeBuf);
+ tightBeforeBufSize=0;
+ }
+ if(tightAfterBufSize) {
+ free(tightAfterBuf);
+ tightAfterBufSize=0;
+ }
+}
/* Prototypes for static functions. */