summaryrefslogtreecommitdiff
path: root/src/actions.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/actions.c')
-rw-r--r--src/actions.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/actions.c b/src/actions.c
index 974af9f..1b99dc6 100644
--- a/src/actions.c
+++ b/src/actions.c
@@ -126,13 +126,13 @@ get_full_uri (DlgNewData *data)
uri_ext = get_archive_filename_extension (uri);
default_ext = mime_type_desc[data->supported_types[idx-1]].default_ext;
- if (strcmp_null_tolerant (uri_ext, default_ext) != 0) {
+ if (strcmp_null_tolerant (uri_ext, default_ext) != 0)
full_uri = g_strconcat (uri, default_ext, NULL);
- g_free (uri);
- }
}
if (full_uri == NULL)
full_uri = uri;
+ else
+ g_free (uri);
return full_uri;
}