Skip to content
Permalink
Browse files

clock: fix use-after-free

closes #791
  • Loading branch information...
monsta committed Apr 28, 2018
1 parent 74ec4df commit 7099408402dc41f39e32f4afa3e874e968e879bc
Showing with 1 addition and 1 deletion.
  1. +1 −1 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);

0 comments on commit 7099408

Please sign in to comment.
You can’t perform that action at this time.