OSDN Git Service

gobex: Fix minor leak in test_recv_connect_stream
authorJohan Hedberg <johan.hedberg@intel.com>
Mon, 27 Jun 2011 11:26:14 +0000 (14:26 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 4 Dec 2012 21:21:56 +0000 (22:21 +0100)
unit/test-gobex.c

index 368a602..63c3962 100644 (file)
@@ -246,11 +246,11 @@ static void test_recv_connect_stream(void)
 
        g_source_remove(timer_id);
        g_obex_unref(obex);
+       g_io_channel_unref(io);
 
        g_main_loop_unref(mainloop);
        mainloop = NULL;
 
-
        g_assert_no_error(gerr);
 }