summaryrefslogtreecommitdiff
path: root/sensors-applet/sensors-applet-plugins.c
diff options
context:
space:
mode:
authorinfo-cppsp <[email protected]>2017-10-26 14:03:24 +0200
committerraveit65 <[email protected]>2017-10-28 20:05:15 +0200
commitc5bce79ac7c654716cd8e1d69882a67053d469ef (patch)
tree196a2b0ecded54244549012d40132bf0cf22ab63 /sensors-applet/sensors-applet-plugins.c
parent9912a19d75bce7b44dc5f5c259bafa312b482afc (diff)
downloadmate-sensors-applet-c5bce79ac7c654716cd8e1d69882a67053d469ef.tar.bz2
mate-sensors-applet-c5bce79ac7c654716cd8e1d69882a67053d469ef.tar.xz
fix save order of sensors
Diffstat (limited to 'sensors-applet/sensors-applet-plugins.c')
-rw-r--r--sensors-applet/sensors-applet-plugins.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sensors-applet/sensors-applet-plugins.c b/sensors-applet/sensors-applet-plugins.c
index b20eb4f..94c7c69 100644
--- a/sensors-applet/sensors-applet-plugins.c
+++ b/sensors-applet/sensors-applet-plugins.c
@@ -83,7 +83,8 @@ static void load_all_plugins(SensorsApplet *sensors_applet,
sensor_info->offset,
sensor_info->icon,
sensor_info->graph_color);
-
+
+ // sensors_applet_add_sensor() doesn't free strings, so free them here
g_free(sensor_info->path);
g_free(sensor_info->id);
g_free(sensor_info->label);