Skip to content
This repository has been archived by the owner on Nov 17, 2020. It is now read-only.

Commit

Permalink
Fix very small leak in the GSettings test
Browse files Browse the repository at this point in the history
  • Loading branch information
allisonkarlitskaya committed Jul 22, 2010
1 parent 23a904f commit dc7348b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gio/tests/gsettings.c
Original file line number Diff line number Diff line change
Expand Up @@ -1073,7 +1073,9 @@ test_simple_binding (void)

g_settings_bind (settings, "enum", obj, "enum", G_SETTINGS_BIND_DEFAULT);
g_object_set (obj, "enum", TEST_ENUM_BAZ, NULL);
g_assert_cmpstr (g_settings_get_string (settings, "enum"), ==, "baz");
s = g_settings_get_string (settings, "enum");
g_assert_cmpstr (s, ==, "baz");
g_free (s);
g_assert_cmpint (g_settings_get_enum (settings, "enum"), ==, TEST_ENUM_BAZ);

g_settings_set_enum (settings, "enum", TEST_ENUM_QUUX);
Expand Down

0 comments on commit dc7348b

Please sign in to comment.