Author: post
Date: 2010-12-30 02:33:23 +0100 (Thu, 30 Dec 2010)
New Revision: 3737
Modified:
trunk/src/rs-tethered-shooting.c
Log:
Remove unused variable, unref metadata.
Modified: trunk/src/rs-tethered-shooting.c
===================================================================
--- trunk/src/rs-tethered-shooting.c 2010-12-30 00:44:42 UTC (rev 3736)
+++ trunk/src/rs-tethered-shooting.c 2010-12-30 01:33:23 UTC (rev 3737)
@@ -447,6 +447,7 @@
/* Make sure we rotate this right */
gdk_threads_unlock();
metadata = rs_metadata_new_from_file(filename);
+ g_object_unref(metadata);
gdk_threads_lock();
return filename;
}
@@ -459,7 +460,6 @@
CameraFile *canonfile;
int fd, retval, i;
append_status(t,_("Downloading and adding image.\n"));
- char tmp_name[L_tmpnam];
char *tmp_name_ptr;
tmp_name_ptr = g_build_filename(g_get_tmp_dir(),
g_strdup_printf("rs-tether-%d.tmp", g_random_int()), NULL);
_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit