aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2014-04-01 23:19:57 +0000
committerCI bot <ps-jenkins@lists.canonical.com>2014-04-01 23:19:57 +0000
commitd3dbfd0e650b22ad50eafb85137d6c720538c24a (patch)
tree432be612d09338c43f2d7dd848fb88fd42a42ee7
parent2dc2db93122060318cbba27fb706226aed1cf17e (diff)
parente9068f2e71d825aadee4e0cdef661bc76c72890d (diff)
downloadayatana-indicator-sound-d3dbfd0e650b22ad50eafb85137d6c720538c24a.tar.gz
ayatana-indicator-sound-d3dbfd0e650b22ad50eafb85137d6c720538c24a.tar.bz2
ayatana-indicator-sound-d3dbfd0e650b22ad50eafb85137d6c720538c24a.zip
Don't unref the objects in the test
-rw-r--r--tests/media-player-user.cc4
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);