summaryrefslogtreecommitdiff
path: root/mate-dictionary/src
diff options
context:
space:
mode:
Diffstat (limited to 'mate-dictionary/src')
-rw-r--r--mate-dictionary/src/gdict-app.c1
-rw-r--r--mate-dictionary/src/gdict-window.c3
2 files changed, 3 insertions, 1 deletions
diff --git a/mate-dictionary/src/gdict-app.c b/mate-dictionary/src/gdict-app.c
index 03f9cd6a..3d82a037 100644
--- a/mate-dictionary/src/gdict-app.c
+++ b/mate-dictionary/src/gdict-app.c
@@ -359,6 +359,7 @@ gdict_init (int *argc, char ***argv)
exit (1);
}
+ g_option_context_free (context);
g_set_application_name (_("Dictionary"));
gtk_window_set_default_icon_name ("accessories-dictionary");
diff --git a/mate-dictionary/src/gdict-window.c b/mate-dictionary/src/gdict-window.c
index 067a2534..96168286 100644
--- a/mate-dictionary/src/gdict-window.c
+++ b/mate-dictionary/src/gdict-window.c
@@ -130,7 +130,6 @@ gdict_window_dispose (GObject *gobject)
if (window->settings != NULL)
{
g_object_unref (window->settings);
-
window->settings = NULL;
}
@@ -189,6 +188,8 @@ gdict_window_dispose (GObject *gobject)
window->busy_cursor = NULL;
}
+ g_clear_pointer (&window->sidebar_page, g_free);
+
G_OBJECT_CLASS (gdict_window_parent_class)->dispose (gobject);
}