Skip to content
Snippets Groups Projects
Commit 38c97205 authored by Simon McVittie's avatar Simon McVittie
Browse files

graphics test: Plug memory leaks

parent 1ba0a47a
No related branches found
No related tags found
1 merge request!40Fix memory leaks
Pipeline #1543 passed
...@@ -107,6 +107,8 @@ test_object (Fixture *f, ...@@ -107,6 +107,8 @@ test_object (Fixture *f,
g_assert_cmpstr (renderer, ==, SRT_TEST_GOOD_GRAPHICS_RENDERER); g_assert_cmpstr (renderer, ==, SRT_TEST_GOOD_GRAPHICS_RENDERER);
g_assert_cmpstr (version, ==, SRT_TEST_GOOD_GRAPHICS_VERSION); g_assert_cmpstr (version, ==, SRT_TEST_GOOD_GRAPHICS_VERSION);
g_free (tuple); g_free (tuple);
g_free (renderer);
g_free (version);
g_object_unref (graphics); g_object_unref (graphics);
} }
...@@ -151,6 +153,7 @@ test_good_graphics (Fixture *f, ...@@ -151,6 +153,7 @@ test_good_graphics (Fixture *f,
g_free (version); g_free (version);
g_object_unref (graphics); g_object_unref (graphics);
g_object_unref (info);
} }
/* /*
...@@ -194,6 +197,7 @@ test_bad_graphics (Fixture *f, ...@@ -194,6 +197,7 @@ test_bad_graphics (Fixture *f,
g_free (version); g_free (version);
g_object_unref (graphics); g_object_unref (graphics);
g_object_unref (info);
} }
/* /*
...@@ -237,6 +241,7 @@ test_software_rendering (Fixture *f, ...@@ -237,6 +241,7 @@ test_software_rendering (Fixture *f,
g_free (version); g_free (version);
g_object_unref (graphics); g_object_unref (graphics);
g_object_unref (info);
} }
int int
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment