Diff of /ColourBrightness.c [b11426] .. [1efbe6] Maximize Restore

  Switch to side-by-side view

--- a/ColourBrightness.c
+++ b/ColourBrightness.c
@@ -775,11 +775,11 @@
   
   if (panoTiffWrite(&image, outPath->name) == 0) {
     PrintError("Could not read TIFF file %s", inPath->name);
-    myfree((void**)image.data);
+    panoImageDispose(&image);
     return -1;
   }
 
-  myfree((void**)image.data);
+  panoImageDispose(&image);
   return(0);
 
 }