Hello community,

here is the log from the commit of package libgweather for openSUSE:Factory 
checked in at 2017-06-12 15:08:36
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libgweather (Old)
 and      /work/SRC/openSUSE:Factory/.libgweather.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libgweather"

Mon Jun 12 15:08:36 2017 rev:92 rq:501751 version:3.24.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/libgweather/libgweather.changes  2017-03-22 
23:05:08.175515557 +0100
+++ /work/SRC/openSUSE:Factory/.libgweather.new/libgweather.changes     
2017-06-12 15:08:40.309506625 +0200
@@ -1,0 +2,10 @@
+Mon Jun  5 08:58:59 UTC 2017 - [email protected]
+
+- Update to version 3.24.1:
+  + Memory management fixes: bgo#780278, bgo#782760.
+  + Updated translations.
+- Add libgweather-dont-release-allocated-memory.patch: location:
+  Don't release libxml-allocated memory with g_free() (bgo#781828).
+  This commit was missed in the release.
+
+-------------------------------------------------------------------

Old:
----
  libgweather-3.24.0.tar.xz

New:
----
  libgweather-3.24.1.tar.xz
  libgweather-dont-release-allocated-memory.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ libgweather.spec ++++++
--- /var/tmp/diff_new_pack.iyV4Wt/_old  2017-06-12 15:08:41.401352493 +0200
+++ /var/tmp/diff_new_pack.iyV4Wt/_new  2017-06-12 15:08:41.405351928 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           libgweather
-Version:        3.24.0
+Version:        3.24.1
 Release:        0
 Summary:        Library to get online weather information
 License:        GPL-2.0+
@@ -25,6 +25,8 @@
 Url:            http://developer.gnome.org/libgweather/
 Source:         
http://download.gnome.org/sources/libgweather/3.24/%{name}-%{version}.tar.xz
 Source99:       baselibs.conf
+# PATCH-FIX-UPSTREAM libgweather-dont-release-allocated-memory.patch 
bgo#781828 [email protected] -- Don't release libxml-allocated memory with 
g_free()
+Patch0:         libgweather-dont-release-allocated-memory.patch
 BuildRequires:  gobject-introspection-devel
 BuildRequires:  intltool
 BuildRequires:  libxml2-tools
@@ -91,6 +93,7 @@
 %lang_package
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %configure \

++++++ libgweather-3.24.0.tar.xz -> libgweather-3.24.1.tar.xz ++++++
++++ 34685 lines of diff (skipped)

++++++ libgweather-dont-release-allocated-memory.patch ++++++
>From 9b08eeadf215580358d0f53ac0f54c9acdde7384 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Florian=20M=C3=BCllner?= <[email protected]>
Date: Sat, 22 Apr 2017 04:30:37 +0200
Subject: location: Don't release libxml-allocated memory with g_free()

Don't assume that xmlFree() and g_free() are interchangeable, copy
the value returned from XML like we already do for other struct
members.

https://bugzilla.gnome.org/show_bug.cgi?id=781828
---
 libgweather/gweather-location.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/libgweather/gweather-location.c b/libgweather/gweather-location.c
index 2a499a9..d2d70c8 100644
--- a/libgweather/gweather-location.c
+++ b/libgweather/gweather-location.c
@@ -165,7 +165,8 @@ location_new_from_xml (GWeatherParser *parser, 
GWeatherLocationLevel level,
            if (!value)
                goto error_out;
 
-           loc->english_name = value;
+           loc->english_name = g_strdup (value);
+
            if (loc->msgctxt) {
                loc->local_name = g_strdup (g_dpgettext2 
("libgweather-locations",
                                                          (char*) loc->msgctxt, 
value));
@@ -180,6 +181,7 @@ location_new_from_xml (GWeatherParser *parser, 
GWeatherLocationLevel level,
            normalized = g_utf8_normalize (loc->english_name, -1, 
G_NORMALIZE_ALL);
            loc->english_sort_name = g_utf8_casefold (normalized, -1);
            g_free (normalized);
+           xmlFree (value);
        } else if (!strcmp (tagname, "iso-code") && !loc->country_code) {
            value = _gweather_parser_get_value (parser);
            if (!value)
-- 
cgit v0.12


Reply via email to