combine() - was leaking malloc()ed row buffers
authorTony Cook <tony@develop-help.com>
Tue, 23 Feb 2016 10:57:21 +0000 (21:57 +1100)
committerTony Cook <tony@develop-help.com>
Tue, 23 Feb 2016 10:57:21 +0000 (21:57 +1100)
combine.im

index 37e174d..b13a941 100644 (file)
@@ -75,6 +75,8 @@ i_combine(i_img **imgs, const int *channels, int in_count) {
     }
     IM_PLIN(out, 0, width, y, out_row);
   }
+  myfree(out_row);
+  myfree(in_row);
 #/code
 
   return out;