diff options
author | dscho <dscho> | 2003-07-29 15:02:33 +0000 |
---|---|---|
committer | dscho <dscho> | 2003-07-29 15:02:33 +0000 |
commit | 964aa1628f2cc4fac17c22dc89fc2439bd87b00e (patch) | |
tree | fbb5a0eacfd5ab9f1c84a0825744b5e69364eba5 /tight.c | |
parent | 9b46601daa37906feb3c2334200170e53486cdac (diff) | |
download | libtdevnc-964aa1628f2cc4fac17c22dc89fc2439bd87b00e.tar.gz libtdevnc-964aa1628f2cc4fac17c22dc89fc2439bd87b00e.zip |
further valgrinding showed leaked mallocs
Diffstat (limited to 'tight.c')
-rw-r--r-- | tight.c | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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. */ |