diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2013-11-08 20:44:47 +0000 |
---|---|---|
committer | Tarmac <Unknown> | 2013-11-08 20:44:47 +0000 |
commit | 102ef5c6977f53eb5dc211a0f1f2f5b1cde0352f (patch) | |
tree | ff47b2498dcac9b119b0b2257df9565df0654c46 /tests/test-service.cc | |
parent | 4af45b95b38c9fee98ddcfdf616fb8cda3e31823 (diff) | |
parent | 57ff63f095c33bb90a2eaf64acdb22d529bd0621 (diff) | |
download | ayatana-indicator-session-102ef5c6977f53eb5dc211a0f1f2f5b1cde0352f.tar.gz ayatana-indicator-session-102ef5c6977f53eb5dc211a0f1f2f5b1cde0352f.tar.bz2 ayatana-indicator-session-102ef5c6977f53eb5dc211a0f1f2f5b1cde0352f.zip |
fix a minor memory leak that was caused by treating the variant returned by g_icon_serialize() as floating.
Approved by Ted Gould, PS Jenkins bot.
Diffstat (limited to 'tests/test-service.cc')
-rw-r--r-- | tests/test-service.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test-service.cc b/tests/test-service.cc index 19ec619..5ec86d2 100644 --- a/tests/test-service.cc +++ b/tests/test-service.cc @@ -342,7 +342,7 @@ class ServiceTest: public GTestDBusFixture if (expected_icon != NULL) { GVariant * v = g_variant_lookup_value (state, "icon", NULL); - GIcon * expected = g_themed_icon_new (expected_icon); + GIcon * expected = g_themed_icon_new_with_default_fallbacks (expected_icon); GIcon * actual = g_icon_deserialize (v); ASSERT_TRUE (g_icon_equal (expected, actual)); g_object_unref (actual); |