summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--window_main.c2
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);