tests: fix leaks in option-context test
authorRyan Lortie <desrt@desrt.ca>
Fri, 10 Jan 2014 17:28:14 +0000 (12:28 -0500)
committerRyan Lortie <desrt@desrt.ca>
Fri, 10 Jan 2014 17:32:35 +0000 (12:32 -0500)
commitd751e65aff6df64318ab2d95b3098dd155a1e0aa
tree6be1208c13c04cef60830a23199f6b2118c5e813
parentf062fae4d6d705736c2b1b899c4413b99d4cfc96
tests: fix leaks in option-context test

Use the new g_option_context_parse_strv() to patch up some leaks in some
insufficiently-argv-emulating testcases in option-context.c.

This gives some test coverage of the new function while also making
option-context now leak-free.

https://bugzilla.gnome.org/show_bug.cgi?id=721947
glib/tests/option-context.c