changeset 1510:7bbf4b41fc33

Urgh. 1000L idiotic mistake: a dmGrowBufAlloc() call had been left in dmEncodeGenericRLE(), causing a memory leak.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 11 May 2018 22:24:11 +0300
parents 15afe578f0ae
children 62ede0de6ab0
files tools/lib64gfx.c
diffstat 1 files changed, 0 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/tools/lib64gfx.c	Fri May 11 22:22:40 2018 +0300
+++ b/tools/lib64gfx.c	Fri May 11 22:24:11 2018 +0300
@@ -252,9 +252,6 @@
 {
     int res;
 
-    if ((res = dmGrowBufAlloc(dst, BUF_SIZE_INITIAL, BUF_SIZE_GROW)) != DMERR_OK)
-        goto err;
-
     // Perform RLE decode
     while (src < srcEnd)
     {