summaryrefslogtreecommitdiffstats
path: root/tight.c
diff options
context:
space:
mode:
authordscho <dscho>2003-07-29 15:02:33 +0000
committerdscho <dscho>2003-07-29 15:02:33 +0000
commit964aa1628f2cc4fac17c22dc89fc2439bd87b00e (patch)
treefbb5a0eacfd5ab9f1c84a0825744b5e69364eba5 /tight.c
parent9b46601daa37906feb3c2334200170e53486cdac (diff)
downloadlibtdevnc-964aa1628f2cc4fac17c22dc89fc2439bd87b00e.tar.gz
libtdevnc-964aa1628f2cc4fac17c22dc89fc2439bd87b00e.zip
further valgrinding showed leaked mallocs
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. */