[rhythmbox/deprecations: 9/13] g_object_ref now returns the type of its argument, rather than gpointer
- From: Jonathan Matthew <jmatthew src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox/deprecations: 9/13] g_object_ref now returns the type of its argument, rather than gpointer
- Date: Mon, 6 Jan 2020 22:36:59 +0000 (UTC)
commit 221b523f062c8f75f2851592938bbd4b14517fd5
Author: Jonathan Matthew <jonathan d14n org>
Date: Fri Nov 15 22:12:50 2019 +1000
g_object_ref now returns the type of its argument, rather than gpointer
rhythmdb/rhythmdb-metadata-cache.c | 2 +-
sources/rb-library-source.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/rhythmdb/rhythmdb-metadata-cache.c b/rhythmdb/rhythmdb-metadata-cache.c
index bc382e33f..e41226770 100644
--- a/rhythmdb/rhythmdb-metadata-cache.c
+++ b/rhythmdb/rhythmdb-metadata-cache.c
@@ -130,7 +130,7 @@ rhythmdb_metadata_cache_get (RhythmDB *db, const char *name)
obj = g_hash_table_lookup (instances, name);
if (obj)
- return g_object_ref (obj);
+ return RHYTHMDB_METADATA_CACHE (g_object_ref (obj));
obj = g_object_new (RHYTHMDB_TYPE_METADATA_CACHE,
"db", db,
diff --git a/sources/rb-library-source.c b/sources/rb-library-source.c
index e5b47f4eb..536726f37 100644
--- a/sources/rb-library-source.c
+++ b/sources/rb-library-source.c
@@ -1423,7 +1423,7 @@ impl_add_uri (RBSource *asource,
cbdata = g_new0 (struct ImportJobCallbackData, 1);
cbdata->uri = g_strdup (uri);
- cbdata->source = g_object_ref (source);
+ cbdata->source = g_object_ref (asource);
cbdata->callback = callback;
cbdata->data = data;
cbdata->destroy_data = destroy_data;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]