[gnome-initial-setup/wjt/gweather-autoptr: 3/4] timezone: Don't leak location from entry
- From: Will Thompson <wjt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-initial-setup/wjt/gweather-autoptr: 3/4] timezone: Don't leak location from entry
- Date: Wed, 13 Jan 2021 10:40:16 +0000 (UTC)
commit 0437c4fadc2ae13f5aacfed6e12d4f65b1790693
Author: Will Thompson <wjt endlessos org>
Date: Tue Jan 12 20:33:29 2021 +0000
timezone: Don't leak location from entry
gweather_location_entry_get_location()'s return value is transfer full,
but previously we leaked the value.
gnome-initial-setup/pages/timezone/gis-timezone-page.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/gnome-initial-setup/pages/timezone/gis-timezone-page.c
b/gnome-initial-setup/pages/timezone/gis-timezone-page.c
index 5906d690..e1882083 100644
--- a/gnome-initial-setup/pages/timezone/gis-timezone-page.c
+++ b/gnome-initial-setup/pages/timezone/gis-timezone-page.c
@@ -243,6 +243,8 @@ entry_location_changed (GObject *object, GParamSpec *param, GisTimezonePage *pag
priv->in_search = TRUE;
set_location (page, location);
priv->in_search = FALSE;
+
+ gweather_location_unref (location);
}
#define GETTEXT_PACKAGE_TIMEZONES "gnome-control-center-2.0-timezones"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]