rpms/dbus-glib/devel 0001-Fix-lookup-of-regular-properties-when-shadow-propert.patch, NONE, 1.1 dbus-glib.spec, 1.47, 1.48

Daniel Williams dcbw at fedoraproject.org
Wed Jun 30 05:43:04 UTC 2010


Author: dcbw

Update of /cvs/extras/rpms/dbus-glib/devel
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv7104

Modified Files:
	dbus-glib.spec 
Added Files:
	0001-Fix-lookup-of-regular-properties-when-shadow-propert.patch 
Log Message:
* Tue Jun 29 2010 Dan Williams <dcbw at redhat.com> - 0.86-3
- Fix shadow property access (fdo #28835)



0001-Fix-lookup-of-regular-properties-when-shadow-propert.patch:
 dbus-gobject.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- NEW FILE 0001-Fix-lookup-of-regular-properties-when-shadow-propert.patch ---
>From b2c9478f9be1c8cf0d89a2391eb4da91b2940040 Mon Sep 17 00:00:00 2001
From: Dan Williams <dcbw at redhat.com>
Date: Tue, 29 Jun 2010 21:19:25 -0700
Subject: [PATCH] Fix lookup of regular properties when shadow properties are used

Only free the uscore converted name if there's actually a shadow
property registered for this property; otherwise if there is no
shadow property we free the uscore converted one and then return
it immediately after.
---
 dbus/dbus-gobject.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/dbus/dbus-gobject.c b/dbus/dbus-gobject.c
index 3344761..6a1aba4 100644
--- a/dbus/dbus-gobject.c
+++ b/dbus/dbus-gobject.c
@@ -945,7 +945,8 @@ lookup_property_name (GObject    *object,
   if (shadow_props)
     {
       shadow_prop_name = g_strdup (g_hash_table_lookup (shadow_props, wincaps_propname));
-      g_free (uscore_name);
+      if (shadow_prop_name)
+        g_free (uscore_name);
     }
 
   return shadow_prop_name ? shadow_prop_name : uscore_name;
-- 
1.7.0.1



Index: dbus-glib.spec
===================================================================
RCS file: /cvs/extras/rpms/dbus-glib/devel/dbus-glib.spec,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -p -r1.47 -r1.48
--- dbus-glib.spec	29 Jun 2010 13:25:06 -0000	1.47
+++ dbus-glib.spec	30 Jun 2010 05:43:04 -0000	1.48
@@ -8,7 +8,7 @@
 Summary: GLib bindings for D-Bus
 Name: dbus-glib
 Version: 0.86
-Release: 2%{?dist}
+Release: 3%{?dist}
 URL: http://www.freedesktop.org/software/dbus/
 #VCS: git:git://git.freedesktop.org/git/dbus/dbus-glib
 Source0: http://dbus.freedesktop.org/releases/dbus-glib/%{name}-%{version}.tar.gz
@@ -26,6 +26,9 @@ BuildRequires: glib2-devel >= %{glib2_ve
 BuildRequires: gettext
 BuildRequires: gobject-introspection-devel
 
+# https://bugs.freedesktop.org/show_bug.cgi?id=28835
+Patch0: 0001-Fix-lookup-of-regular-properties-when-shadow-propert.patch
+
 %description
 
 D-Bus add-on library to integrate the standard D-Bus library with
@@ -59,7 +62,7 @@ D-Bus tools written using the gtk+ GUI l
 
 %prep
 %setup -q
-
+%patch0 -p1
 
 %build
 %configure --disable-tests \
@@ -122,6 +125,9 @@ rm -rf %{buildroot}
 %endif
 
 %changelog
+* Tue Jun 29 2010 Dan Williams <dcbw at redhat.com> - 0.86-3
+- Fix shadow property access (fdo #28835)
+
 * Tue Jun 29 2010 Bastien Nocera <bnocera at redhat.com> 0.86-2
 - Add introspection data from gir-repository
 - Remove unneeded autotools calls



More information about the scm-commits mailing list