From 7561c42ec666231063a3dc65d736fc3d69aae265 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Thu, 7 Jan 2010 23:18:40 +0100 Subject: Fixed memleak in on_add_dir_action_activate(). --- window_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/window_main.c b/window_main.c index 715da9c..41f53ad 100644 --- a/window_main.c +++ b/window_main.c @@ -453,7 +453,7 @@ void on_add_dir_action_activate(GtkAction *action, gpointer user_data) { if(gtk_dialog_run(GTK_DIALOG(dialog)) == GTK_RESPONSE_ACCEPT) { char *directory; directory = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(dialog)); - add_thread = g_thread_create(add_dir_thread, g_strdup(directory), FALSE, &error); + add_thread = g_thread_create(add_dir_thread, directory, FALSE, &error); if(!add_thread) { g_warning("%s", error->message); g_error_free(error); -- cgit v1.2.3