Author: akv
Date: 2012-04-29 23:39:24 +0200 (Sun, 29 Apr 2012)
New Revision: 4216

Modified:
   branches/4175-enfuse/src/rs-enfuse.c
Log:
More cleanup.

Modified: branches/4175-enfuse/src/rs-enfuse.c
===================================================================
--- branches/4175-enfuse/src/rs-enfuse.c        2012-04-29 21:33:14 UTC (rev 
4215)
+++ branches/4175-enfuse/src/rs-enfuse.c        2012-04-29 21:39:24 UTC (rev 
4216)
@@ -279,6 +279,7 @@
          file = g_malloc(sizeof(char)*strlen(name));
          sscanf(g_path_get_basename(name), "%[^.]", file);
          outname = g_string_append(outname, file);
+         g_free(file);
          if (i+1 != num_selected)
            outname = g_string_append(outname, "+");
        }
@@ -286,15 +287,21 @@
       fullpath = g_string_append(fullpath, "/");
       fullpath = g_string_append(fullpath, outname->str);
       fullpath = g_string_append(fullpath, ".tif");
+      g_string_free(outname, TRUE);
     }
 
   GList *exported_names = export_images(rs, files, extend, 0, 1.0, 0, 1.0, 
boundingbox);
   GList *aligned_names = NULL;
   if (has_align_image_stack() && num_selected > 1)
+    {
       aligned_names = align_images(exported_names, align_options);
+      g_free(align_options);
+    }
   else
       aligned_names = exported_names;
   enfuse_images(aligned_names, fullpath->str, enfuse_options);
+  g_string_free(fullpath, TRUE);
+  g_free(enfuse_options);
 
   // FIXME: Aparantly something goes wrong if we copy exifdata...
   //  rs_exif_copy(first, fullpath->str, "sRGB", RS_EXIF_FILE_TYPE_TIFF);


_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit

Reply via email to