summaryrefslogtreecommitdiff
path: root/src/trg-destination-combo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/trg-destination-combo.c')
-rw-r--r--src/trg-destination-combo.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/trg-destination-combo.c b/src/trg-destination-combo.c
index 7d7c7af..30bfc83 100644
--- a/src/trg-destination-combo.c
+++ b/src/trg-destination-combo.c
@@ -296,8 +296,6 @@ static GObject *trg_destination_combo_constructor(GType type,
defaultDir,
DEST_DEFAULT, lastDestination);
- g_free(defaultDir);
-
if (savedDestinations) {
list = json_array_get_elements(savedDestinations);
if (list) {
@@ -340,14 +338,15 @@ static GObject *trg_destination_combo_constructor(GType type,
trg_client_updateunlock(client);
- g_list_free(list);
-
for (sli = dirs; sli; sli = g_slist_next(sli))
trg_destination_combo_insert(GTK_COMBO_BOX(object),
NULL,
(gchar *) sli->data,
DEST_EXISTING, lastDestination);
+ g_list_free(list);
+ g_free(defaultDir);
+
return object;
}