[tracker-miners/sam/vorbis-fix] tracker-extract-vorbis: Fix warnings from g_object_unref()
- From: Sam Thursfield <sthursfield src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker-miners/sam/vorbis-fix] tracker-extract-vorbis: Fix warnings from g_object_unref()
- Date: Tue, 25 Feb 2020 00:15:29 +0000 (UTC)
commit 8bb14508e86212a38c93f606b7aca3b6223429af
Author: Sam Thursfield <sam afuera me uk>
Date: Tue Feb 25 01:10:59 2020 +0100
tracker-extract-vorbis: Fix warnings from g_object_unref()
Fixes warnings that could happen when processing a .ogg file:
(tracker-extract:54860): GLib-GObject-CRITICAL **: 00:55:14.711: g_object_unref: assertion
'G_IS_OBJECT (object)' failed
(tracker-extract:54860): GLib-GObject-CRITICAL **: 00:57:22.162: g_object_unref: assertion
'G_IS_OBJECT (object)' failed
src/tracker-extract/tracker-extract-vorbis.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-vorbis.c b/src/tracker-extract/tracker-extract-vorbis.c
index 10e6ab506..fbba3076d 100644
--- a/src/tracker-extract/tracker-extract-vorbis.c
+++ b/src/tracker-extract/tracker-extract-vorbis.c
@@ -248,9 +248,9 @@ tracker_extract_get_metadata (TrackerExtractInfo *info)
tracker_resource_set_relation (metadata, "nmm:musicAlbum", album);
tracker_resource_set_relation (metadata, "nmm:musicAlbumDisc", album_disc);
- g_object_unref (album_disc);
- g_object_unref (mb_release);
- g_object_unref (mb_release_group);
+ g_clear_object (&album_disc);
+ g_clear_object (&mb_release);
+ g_clear_object (&mb_release_group);
}
g_free (vd.track_count);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]