summaryrefslogtreecommitdiff
path: root/mate-panel/libpanel-util/panel-keyfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'mate-panel/libpanel-util/panel-keyfile.c')
-rw-r--r--mate-panel/libpanel-util/panel-keyfile.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/mate-panel/libpanel-util/panel-keyfile.c b/mate-panel/libpanel-util/panel-keyfile.c
index 2b58dc3a..0b0104ef 100644
--- a/mate-panel/libpanel-util/panel-keyfile.c
+++ b/mate-panel/libpanel-util/panel-keyfile.c
@@ -293,8 +293,7 @@ panel_key_file_remove_locale_key (GKeyFile *keyfile,
locale_key, NULL))
break;
- g_free (locale_key);
- locale_key = NULL;
+ g_clear_pointer (&locale_key, g_free);
}
}