Merge lp:~mhr3/libzeitgeist/various-fixes into lp:libzeitgeist

Proposed by Michal Hruby
Status: Merged
Merge reported by: Mikkel Kamstrup Erlandsen
Merged at revision: not available
Proposed branch: lp:~mhr3/libzeitgeist/various-fixes
Merge into: lp:libzeitgeist
Diff against target: 11 lines (+1/-0)
1 file modified
src/zeitgeist-data-source-registry.c (+1/-0)
To merge this branch: bzr merge lp:~mhr3/libzeitgeist/various-fixes
Reviewer Review Type Date Requested Status
LibZeitgeist Developers Pending
Review via email: mp+49078@code.launchpad.net

Description of the change

Fix reference counting issue.

To post a comment you must log in.
lp:~mhr3/libzeitgeist/various-fixes updated
192. By Mikkel Kamstrup Erlandsen

Fix double unref in zeitgeist_data_source_registry_register_data_source(). Based on patch by Michal Hruby.

Revision history for this message
Mikkel Kamstrup Erlandsen (kamstrup) wrote :

I applied a modified version of the patch in revno 192. Thanks Michal!

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/zeitgeist-data-source-registry.c'
2--- src/zeitgeist-data-source-registry.c 2011-02-03 13:24:29 +0000
3+++ src/zeitgeist-data-source-registry.c 2011-02-09 15:37:17 +0000
4@@ -396,6 +396,7 @@
5
6 priv = ZEITGEIST_DATA_SOURCE_REGISTRY_GET_PRIVATE (self);
7
8+ g_object_ref_sink (source);
9 vsource = zeitgeist_data_source_to_variant (source); // own ref
10
11 ctx = g_new0 (MethodDispatchContext, 1);

Subscribers

People subscribed via source and target branches