mainloop test: fix a silly memory error

This commit is contained in:
Ryan Lortie 2013-01-15 15:40:14 -05:00
parent 46b15bb581
commit e1517ca82d

View File

@ -953,7 +953,7 @@ test_unix_fd (void)
to_read = fill_a_pipe (fds[1]); to_read = fill_a_pipe (fds[1]);
/* write at higher priority to keep the pipe full... */ /* write at higher priority to keep the pipe full... */
a = g_unix_fd_add_full (G_PRIORITY_HIGH, fds[1], G_IO_OUT, write_bytes, &to_write, NULL); a = g_unix_fd_add_full (G_PRIORITY_HIGH, fds[1], G_IO_OUT, write_bytes, &to_write, NULL);
source_a = g_main_context_find_source_by_id (NULL, a); source_a = g_source_ref (g_main_context_find_source_by_id (NULL, a));
/* make sure no 'writes' get dispatched yet */ /* make sure no 'writes' get dispatched yet */
while (g_main_context_iteration (NULL, FALSE)); while (g_main_context_iteration (NULL, FALSE));