diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2010-01-07 23:18:40 +0100 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2010-01-07 23:18:40 +0100 |
commit | 7561c42ec666231063a3dc65d736fc3d69aae265 (patch) | |
tree | 6cc99af59e02acca23e61f4899791fe9668929ca | |
parent | 3849236adab80e6169e4f37c35eb4245f495da46 (diff) |
Fixed memleak in on_add_dir_action_activate().
-rw-r--r-- | window_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |