[libgweather] Fix memory leak
- From: Giovanni Campagna <gcampagna src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgweather] Fix memory leak
- Date: Mon, 22 May 2017 15:45:16 +0000 (UTC)
commit 5cd4fb5ad3344f8fe3c84b5c1872278bd7855ba7
Author: Andreas Brauchli <andreas brauchli sensirion com>
Date: Wed May 17 22:29:05 2017 +0200
Fix memory leak
* Free (gchar *) loc->yahoo_id from GWeatherLocation on unref()
https://bugzilla.gnome.org/show_bug.cgi?id=782760
libgweather/gweather-location.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/libgweather/gweather-location.c b/libgweather/gweather-location.c
index ccbb8ee..2a499a9 100644
--- a/libgweather/gweather-location.c
+++ b/libgweather/gweather-location.c
@@ -401,6 +401,7 @@ gweather_location_unref (GWeatherLocation *loc)
g_free (loc->tz_hint);
g_free (loc->station_code);
g_free (loc->forecast_zone);
+ g_free (loc->yahoo_id);
g_free (loc->radar);
if (loc->children) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]