summaryrefslogtreecommitdiff
path: root/applets
diff options
context:
space:
mode:
authormonsta <[email protected]>2018-04-28 15:38:24 +0300
committermonsta <[email protected]>2018-04-28 15:38:24 +0300
commit7099408402dc41f39e32f4afa3e874e968e879bc (patch)
tree18b4aa260c559a3322373863e5f6e869b8982e83 /applets
parent74ec4df4180490ef487baa7ff9786c9f20046119 (diff)
downloadmate-panel-7099408402dc41f39e32f4afa3e874e968e879bc.tar.bz2
mate-panel-7099408402dc41f39e32f4afa3e874e968e879bc.tar.xz
clock: fix use-after-free
closes https://github.com/mate-desktop/mate-panel/issues/791
Diffstat (limited to 'applets')
-rw-r--r--applets/clock/clock-location-tile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/applets/clock/clock-location-tile.c b/applets/clock/clock-location-tile.c
index a4546f71..11a14dcb 100644
--- a/applets/clock/clock-location-tile.c
+++ b/applets/clock/clock-location-tile.c
@@ -612,13 +612,13 @@ weather_info_setup_tooltip (WeatherInfo *info, ClockLocation *location, GtkToolt
else
line2 = g_strdup (temp);
g_free (temp);
- g_free (apparent);
wind = weather_info_get_wind (info);
if (strcmp (apparent, dgettext ("mate-applets-2.0", "Unknown")) != 0)
line3 = g_strdup_printf ("%s\n", wind);
else
line3 = g_strdup ("");
+ g_free (apparent);
sys_timezone = getenv ("TZ");
setenv ("TZ", clock_location_get_timezone (location), 1);