Skip to content

Commit 7099408

Browse files
committed
clock: fix use-after-free
closes #791
1 parent 74ec4df commit 7099408

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎applets/clock/clock-location-tile.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -612,13 +612,13 @@ weather_info_setup_tooltip (WeatherInfo *info, ClockLocation *location, GtkToolt
612612
else
613613
line2 = g_strdup (temp);
614614
g_free (temp);
615-
g_free (apparent);
616615

617616
wind = weather_info_get_wind (info);
618617
if (strcmp (apparent, dgettext ("mate-applets-2.0", "Unknown")) != 0)
619618
line3 = g_strdup_printf ("%s\n", wind);
620619
else
621620
line3 = g_strdup ("");
621+
g_free (apparent);
622622

623623
sys_timezone = getenv ("TZ");
624624
setenv ("TZ", clock_location_get_timezone (location), 1);

0 commit comments

Comments
 (0)