summaryrefslogtreecommitdiff
path: root/gio/gio-tool-move.c
diff options
context:
space:
mode:
Diffstat (limited to 'gio/gio-tool-move.c')
-rw-r--r--gio/gio-tool-move.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gio/gio-tool-move.c b/gio/gio-tool-move.c
index acbe8e954..9f3c20b66 100644
--- a/gio/gio-tool-move.c
+++ b/gio/gio-tool-move.c
@@ -113,12 +113,14 @@ handle_move (int argc, char *argv[], gboolean do_help)
{
show_help (context, error->message);
g_error_free (error);
+ g_option_context_free (context);
return 1;
}
if (argc < 3)
{
show_help (context, NULL);
+ g_option_context_free (context);
return 1;
}
@@ -128,6 +130,7 @@ handle_move (int argc, char *argv[], gboolean do_help)
{
show_help (context, NULL);
g_object_unref (dest);
+ g_option_context_free (context);
return 1;
}
@@ -140,6 +143,7 @@ handle_move (int argc, char *argv[], gboolean do_help)
show_help (context, message);
g_free (message);
g_object_unref (dest);
+ g_option_context_free (context);
return 1;
}