[libgweather/153-memory-leak-in-version-3] location-entry: Fix two memory leaks
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgweather/153-memory-leak-in-version-3] location-entry: Fix two memory leaks
- Date: Thu, 11 Nov 2021 16:11:39 +0000 (UTC)
commit 019c0138ae4f5794ad5135ce2eebafe1d5ded613
Author: Milan Crha <mcrha redhat com>
Date: Thu Nov 11 17:11:00 2021 +0100
location-entry: Fix two memory leaks
Closes https://gitlab.gnome.org/GNOME/libgweather/-/issues/153
libgweather/gweather-location-entry.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/libgweather/gweather-location-entry.c b/libgweather/gweather-location-entry.c
index 5f55f77e..7b63f995 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]