projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
46b15bb
)
mainloop test: fix a silly memory error
author
Ryan Lortie
<desrt@desrt.ca>
Tue, 15 Jan 2013 20:40:14 +0000
(15:40 -0500)
committer
Ryan Lortie
<desrt@desrt.ca>
Tue, 15 Jan 2013 20:40:14 +0000
(15:40 -0500)
glib/tests/mainloop.c
patch
|
blob
|
history
diff --git
a/glib/tests/mainloop.c
b/glib/tests/mainloop.c
index
35995a2
..
530a53c
100644
(file)
--- a/
glib/tests/mainloop.c
+++ b/
glib/tests/mainloop.c
@@
-953,7
+953,7
@@
test_unix_fd (void)
to_read = fill_a_pipe (fds[1]);
/* 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);
- 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 */
while (g_main_context_iteration (NULL, FALSE));