diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2019-07-01 19:28:26 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2019-07-01 19:28:26 (GMT) |
commit | 6e8544094334d134d51cd9ca549a7c75b2e8fdab (patch) | |
tree | dcd5fb231eb58cacbe921ebaba34adf86388c830 /src/core/global.c | |
parent | bfd453d597d23b5c782aa8d40eb744d2ab56838e (diff) |
Fixed the reference counters for the explorer and the resolver.
Diffstat (limited to 'src/core/global.c')
-rw-r--r-- | src/core/global.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/global.c b/src/core/global.c index f61def6..53ae752 100644 --- a/src/core/global.c +++ b/src/core/global.c @@ -145,6 +145,9 @@ void set_current_content_explorer(GContentExplorer *explorer) _explorer = explorer; + if (explorer != NULL) + g_object_ref_sink(G_OBJECT(explorer)); + } @@ -190,6 +193,9 @@ void set_current_content_resolver(GContentResolver *resolver) _resolver = resolver; + if (resolver != NULL) + g_object_ref_sink(G_OBJECT(resolver)); + } |