summaryrefslogtreecommitdiff
path: root/mate-disk-image-mounter/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'mate-disk-image-mounter/src/main.c')
-rw-r--r--mate-disk-image-mounter/src/main.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/mate-disk-image-mounter/src/main.c b/mate-disk-image-mounter/src/main.c
index 65c283ea..49855bbb 100644
--- a/mate-disk-image-mounter/src/main.c
+++ b/mate-disk-image-mounter/src/main.c
@@ -1,5 +1,6 @@
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
/* Copyright (C) 2012 Red Hat, Inc.
+ * Copyright (C) 2012-2021 MATE Developers
*
* This file is part of MATE Utils.
*
@@ -78,7 +79,7 @@ static gboolean opt_writable = FALSE;
static const GOptionEntry opt_entries[] =
{
{ "writable", 'w', 0, G_OPTION_ARG_NONE, &opt_writable, N_("Allow writing to the image"), NULL},
- { NULL }
+ { NULL, 0, 0, G_OPTION_ARG_NONE, NULL, NULL, NULL }
};
/* ---------------------------------------------------------------------------------------------------- */
@@ -158,9 +159,11 @@ main (int argc, char *argv[])
GSList *uris = NULL;
GSList *l;
+#ifdef ENABLE_NLS
bindtextdomain (GETTEXT_PACKAGE, MATELOCALEDIR);
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
textdomain (GETTEXT_PACKAGE);
+#endif /* ENABLE_NLS */
have_gtk = gtk_init_check (&argc, &argv);
@@ -188,8 +191,10 @@ main (int argc, char *argv[])
s = g_option_context_get_help (o, FALSE, NULL);
g_printerr ("%s", s);
g_free (s);
+ g_option_context_free (o);
goto out;
}
+ g_option_context_free (o);
if (argc > 1)
{