mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-09 18:54:04 +02:00
gtestutils: use g_clear_pointer
This commit is contained in:
@@ -2151,12 +2151,9 @@ test_trap_clear (void)
|
|||||||
{
|
{
|
||||||
test_trap_last_status = 0;
|
test_trap_last_status = 0;
|
||||||
test_trap_last_pid = 0;
|
test_trap_last_pid = 0;
|
||||||
g_free (test_trap_last_subprocess);
|
g_clear_pointer (&test_trap_last_subprocess, g_free);
|
||||||
test_trap_last_subprocess = NULL;
|
g_clear_pointer (&test_trap_last_stdout, g_free);
|
||||||
g_free (test_trap_last_stdout);
|
g_clear_pointer (&test_trap_last_stderr, g_free);
|
||||||
test_trap_last_stdout = NULL;
|
|
||||||
g_free (test_trap_last_stderr);
|
|
||||||
test_trap_last_stderr = NULL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef G_OS_UNIX
|
#ifdef G_OS_UNIX
|
||||||
|
Reference in New Issue
Block a user