Commit a1bd6e07 authored by Simon McVittie's avatar Simon McVittie

tls-interaction test: use a weak pointer instead of a deliberate use-after-free

Signed-off-by: Simon McVittie's avatarSimon McVittie <>
Bug: Dan Winship's avatarDan Winship <>
parent 0a7930d0
......@@ -384,10 +384,15 @@ static void
teardown_without_loop (Test *test,
gconstpointer unused)
gpointer weak_pointer = test->interaction;
g_object_add_weak_pointer (weak_pointer, &weak_pointer);
g_object_unref (test->password);
g_object_unref (test->interaction);
g_assert (!G_IS_OBJECT (test->interaction));
g_assert (weak_pointer == NULL);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment