From e9068f2e71d825aadee4e0cdef661bc76c72890d Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Tue, 25 Mar 2014 10:54:57 -0500 Subject: Don't unref objects we don't have a ref to --- tests/media-player-user.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/media-player-user.cc b/tests/media-player-user.cc index 2132e14..32c1181 100644 --- a/tests/media-player-user.cc +++ b/tests/media-player-user.cc @@ -163,7 +163,7 @@ TEST_F(MediaPlayerUserTest, DataSet) { GIcon * out_icon = media_player_get_icon(MEDIA_PLAYER(player)); EXPECT_NE(nullptr, out_icon); EXPECT_TRUE(g_icon_equal(in_icon, out_icon)); - g_clear_object(&out_icon); + // NOTE: No reference in 'out_icon' returned MediaPlayerTrack * track = media_player_get_current_track(MEDIA_PLAYER(player)); EXPECT_NE(nullptr, track); @@ -171,7 +171,7 @@ TEST_F(MediaPlayerUserTest, DataSet) { EXPECT_STREQ("Bansky", media_player_track_get_artist(track)); EXPECT_STREQ("Vinyl is dead", media_player_track_get_album(track)); EXPECT_STREQ("http://art.url", media_player_track_get_art_url(track)); - g_clear_object(&track); + // NOTE: No reference in 'track' returned g_clear_object(&in_icon); g_clear_object(&player); -- cgit v1.2.3