This commit is contained in:
Marco Pesenti Gritti 2008-09-16 15:31:02 +00:00
parent 5618b810e8
commit 9ccbc3d0e1
2 changed files with 27 additions and 1 deletions

View File

@ -0,0 +1,19 @@
--- dbus/connection.py.orig 2008-09-13 14:54:49.000000000 +0200
+++ dbus/connection.py 2008-09-13 14:55:01.000000000 +0200
@@ -484,7 +484,15 @@
deletions.append(match)
else:
new.append(match)
- by_member[signal_name] = new
+
+ if new:
+ by_member[signal_name] = new
+ else:
+ del by_member[signal_name]
+ if not by_member:
+ del by_interface[dbus_interface]
+ if not by_interface:
+ del self._signal_recipients_by_object_path[path]
finally:
self._signals_lock.release()

View File

@ -7,7 +7,7 @@
Summary: D-Bus Python Bindings Summary: D-Bus Python Bindings
Name: dbus-python Name: dbus-python
Version: 0.83.0 Version: 0.83.0
Release: 2%{?dist} Release: 3%{?dist}
URL: http://www.freedesktop.org/software/dbus/ URL: http://www.freedesktop.org/software/dbus/
Source0: http://dbus.freedesktop.org/releases/dbus-python/%{name}-%{version}.tar.gz Source0: http://dbus.freedesktop.org/releases/dbus-python/%{name}-%{version}.tar.gz
@ -18,6 +18,8 @@ BuildRequires: dbus-devel >= %{dbus_version}
BuildRequires: dbus-glib-devel >= %{dbus_glib_version} BuildRequires: dbus-glib-devel >= %{dbus_glib_version}
BuildRequires: python-devel BuildRequires: python-devel
Patch0: dbus-python-0.83.0-memleak.patch
%description %description
D-Bus python bindings for use with python programs. D-Bus python bindings for use with python programs.
@ -35,6 +37,8 @@ bindings.
%prep %prep
%setup -q %setup -q
%patch0 -p0 -b .memleak
%build %build
%configure %configure
@ -75,6 +79,9 @@ rm -rf %{buildroot}
%{_libdir}/pkgconfig/dbus-python.pc %{_libdir}/pkgconfig/dbus-python.pc
%changelog %changelog
* Tue Sep 16 2008 Marco Pesenti Gritti - 0.83.0-3
- Add patch for https://bugs.freedesktop.org/show_bug.cgi?id=17551
* Tue Aug 05 2008 Huang Peng <phuang@redhat.com> - 0.83.0-2 * Tue Aug 05 2008 Huang Peng <phuang@redhat.com> - 0.83.0-2
- Update to 0.83.0. - Update to 0.83.0.