[Rawstudio-commit] r3198 - trunk/src

Anders Kvist anders at kvistmail.dk
Sat Feb 13 01:45:34 CET 2010


Author: akv
Date: 2010-02-13 01:45:34 +0100 (Sat, 13 Feb 2010)
New Revision: 3198

Modified:
   trunk/src/rs-save-dialog.c
Log:
Removed leak in rs-save-dialog.c.

Modified: trunk/src/rs-save-dialog.c
===================================================================
--- trunk/src/rs-save-dialog.c	2010-02-13 00:43:48 UTC (rev 3197)
+++ trunk/src/rs-save-dialog.c	2010-02-13 00:45:34 UTC (rev 3198)
@@ -316,7 +316,9 @@
 save_clicked(GtkButton *button, gpointer user_data)
 {
 	RSSaveDialog *dialog = RS_SAVE_DIALOG(user_data);
-	rs_conf_set_string(CONF_EXPORT_AS_FOLDER, g_path_get_dirname(gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(dialog->chooser))));
+	gchar *dirname = g_path_get_dirname(gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(dialog->chooser)));
+	rs_conf_set_string(CONF_EXPORT_AS_FOLDER, dirname);
+	g_free(dirname);
 
 	/* Just hide it for now, we destroy it in job() */
 	gtk_widget_hide_all(GTK_WIDGET(dialog));




More information about the Rawstudio-commit mailing list