From 7099408402dc41f39e32f4afa3e874e968e879bc Mon Sep 17 00:00:00 2001 From: monsta Date: Sat, 28 Apr 2018 15:38:24 +0300 Subject: clock: fix use-after-free closes https://github.com/mate-desktop/mate-panel/issues/791 --- applets/clock/clock-location-tile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.1