diff options
author | Ted Gould <ted@gould.cx> | 2014-03-25 10:54:57 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2014-03-25 10:54:57 -0500 |
commit | e9068f2e71d825aadee4e0cdef661bc76c72890d (patch) | |
tree | 432be612d09338c43f2d7dd848fb88fd42a42ee7 | |
parent | 2dc2db93122060318cbba27fb706226aed1cf17e (diff) | |
download | ayatana-indicator-sound-e9068f2e71d825aadee4e0cdef661bc76c72890d.tar.gz ayatana-indicator-sound-e9068f2e71d825aadee4e0cdef661bc76c72890d.tar.bz2 ayatana-indicator-sound-e9068f2e71d825aadee4e0cdef661bc76c72890d.zip |
Don't unref objects we don't have a ref to
-rw-r--r-- | tests/media-player-user.cc | 4 |
1 files changed, 2 insertions, 2 deletions
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); |