summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2021-11-11 17:11:00 +0100
committerMilan Crha <mcrha@redhat.com>2021-11-11 17:11:00 +0100
commit019c0138ae4f5794ad5135ce2eebafe1d5ded613 (patch)
treee3c6daf1ee8abd74520b75579c8eaef3a170089d
parent1d7ac3b2baee2ae2583873715cb315357686fe06 (diff)
downloadlibgweather-153-memory-leak-in-version-3.tar.gz
location-entry: Fix two memory leaks153-memory-leak-in-version-3
Closes https://gitlab.gnome.org/GNOME/libgweather/-/issues/153
-rw-r--r--libgweather/gweather-location-entry.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libgweather/gweather-location-entry.c b/libgweather/gweather-location-entry.c
index 5f55f77..7b63f99 100644
--- a/libgweather/gweather-location-entry.c
+++ b/libgweather/gweather-location-entry.c
@@ -560,6 +560,7 @@ fill_location_entry_model (GtkListStore *store, GWeatherLocation *loc,
show_named_timezones);
g_free (display_name);
+ g_free (local_sort_name);
g_free (local_compare_name);
g_free (english_compare_name);
break;
@@ -595,6 +596,7 @@ fill_location_entry_model (GtkListStore *store, GWeatherLocation *loc,
-1);
g_free (display_name);
+ g_free (local_sort_name);
g_free (local_compare_name);
g_free (english_compare_name);
break;