Merge lp:~aacid/dconf-qt/unsubscribe_on_destruction into lp:~ubuntu-desktop/dconf-qt/ubuntu

Proposed by Albert Astals Cid
Status: Merged
Merged at revision: 22
Proposed branch: lp:~aacid/dconf-qt/unsubscribe_on_destruction
Merge into: lp:~ubuntu-desktop/dconf-qt/ubuntu
Diff against target: 41 lines (+19/-0)
3 files modified
debian/changelog (+2/-0)
debian/patches/03_unsubscribe_on_destruction.patch (+16/-0)
debian/patches/series (+1/-0)
To merge this branch: bzr merge lp:~aacid/dconf-qt/unsubscribe_on_destruction
Reviewer Review Type Date Requested Status
Didier Roche-Tolomelli Approve
Review via email: mp+97452@code.launchpad.net

Description of the change

Unsubscribe from dconf-dbus on ~QConf

Otherwise crashes will happen when dconf-dbus calls back and QConf has already been deleted

To post a comment you must log in.
Revision history for this message
Albert Astals Cid (aacid) wrote :
Revision history for this message
Albert Astals Cid (aacid) wrote :

Upstream commit merged already :-)

Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

excellent! Merging thanks :)

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2011-07-25 15:23:46 +0000
3+++ debian/changelog 2012-03-14 16:41:32 +0000
4@@ -2,6 +2,8 @@
5
6 * debian/control:
7 - create the upstream project on launchpad and change Vcs-Bzr
8+ * debian/patches/03_unsubscribe_on_destruction.patch:
9+ - unsubscribe from dconf-bus in ~QConf
10
11 -- Didier Roche <didrocks@ubuntu.com> Mon, 25 Jul 2011 17:23:24 +0200
12
13
14=== added file 'debian/patches/03_unsubscribe_on_destruction.patch'
15--- debian/patches/03_unsubscribe_on_destruction.patch 1970-01-01 00:00:00 +0000
16+++ debian/patches/03_unsubscribe_on_destruction.patch 2012-03-14 16:41:32 +0000
17@@ -0,0 +1,16 @@
18+diff --git a/lib/qconf.cpp b/lib/qconf.cpp
19+index e743261..57af1d8 100644
20+--- a/lib/qconf.cpp
21++++ b/lib/qconf.cpp
22+@@ -132,8 +132,10 @@ QConf::QConf()
23+ }
24+
25+ QConf::~QConf() {
26+- if (priv->path != NULL)
27++ if (priv->path != NULL) {
28++ dconf_dbus_client_unsubscribe(dconfClient, qconf_notify, this);
29+ delete priv->path;
30++ }
31+
32+ delete priv;
33+ }
34
35=== modified file 'debian/patches/series'
36--- debian/patches/series 2011-07-25 09:02:32 +0000
37+++ debian/patches/series 2012-03-14 16:41:32 +0000
38@@ -1,2 +1,3 @@
39 01_fix_pc_generation.patch
40 02_link_again_dconf_dbus.patch
41+03_unsubscribe_on_destruction.patch

Subscribers

People subscribed via source and target branches