[gnome-control-center/gnome-3-32] universal-access: Fix leaks checking settings
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/gnome-3-32] universal-access: Fix leaks checking settings
- Date: Sun, 9 Jun 2019 23:33:33 +0000 (UTC)
commit 4f4005d02919d447e1d657594a5891d97924baed
Author: Robert Ancell <robert ancell canonical com>
Date: Tue Jun 4 13:48:42 2019 +1200
universal-access: Fix leaks checking settings
panels/universal-access/zoom-options.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/panels/universal-access/zoom-options.c b/panels/universal-access/zoom-options.c
index 628614762..71ea32901 100644
--- a/panels/universal-access/zoom-options.c
+++ b/panels/universal-access/zoom-options.c
@@ -92,7 +92,7 @@ mouse_tracking_radio_toggled_cb (GtkWidget *widget, ZoomOptions *self)
static void
init_mouse_mode_radio_group (GSList *mode_group, ZoomOptions *self)
{
- gchar *mode;
+ g_autofree gchar *mode = NULL;
gchar *name;
mode = g_settings_get_string (self->settings, "mouse-tracking");
@@ -173,7 +173,7 @@ mouse_tracking_notify_cb (GSettings *settings,
const gchar *key,
ZoomOptions *self)
{
- gchar *tracking;
+ g_autofree gchar *tracking = NULL;
tracking = g_settings_get_string (settings, key);
if (g_strcmp0 (tracking, "proportional") == 0)
@@ -222,7 +222,7 @@ screen_position_notify_cb (GSettings *settings,
const gchar *key,
ZoomOptions *self)
{
- gchar *position;
+ g_autofree gchar *position = NULL;
GtkTreeIter iter;
GtkTreeModel *model;
GtkComboBox *combobox;
@@ -258,7 +258,7 @@ screen_position_notify_cb (GSettings *settings,
static void
init_xhairs_color_opacity (GtkColorButton *color_button, GSettings *settings)
{
- gchar *color_setting;
+ g_autofree gchar *color_setting = NULL;
GdkRGBA rgba;
color_setting = g_settings_get_string (settings, "cross-hairs-color");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]