diff options
author | Olivier CrĂȘte <olivier.crete@collabora.com> | 2013-02-28 17:26:54 -0500 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@collabora.com> | 2013-02-28 17:26:54 -0500 |
commit | ba382df8e27bd1e3e7fda1a9740f2b7928535d73 (patch) | |
tree | 0a162adcda851ffc350045b3f466f3ba66111e4a /tests | |
parent | 1f9fcbdf164612d0d630bb3c903e7e70fe61693f (diff) | |
download | farstream-ba382df8e27bd1e3e7fda1a9740f2b7928535d73.tar.gz |
tests: Fix GSource leak
Diffstat (limited to 'tests')
-rw-r--r-- | tests/check/transmitter/shm.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/check/transmitter/shm.c b/tests/check/transmitter/shm.c index 72d6d466..aeee92a8 100644 --- a/tests/check/transmitter/shm.c +++ b/tests/check/transmitter/shm.c @@ -216,6 +216,7 @@ run_shm_transmitter_test (gint flags) FsCandidate *cand; GList *remote_cands = NULL; int param_count = 0; + gint bus_source; done = FALSE; connected_count = 0; @@ -279,7 +280,7 @@ run_shm_transmitter_test (gint flags) pipeline = setup_pipeline (trans, G_CALLBACK (_handoff_handler)); bus = gst_element_get_bus (pipeline); - gst_bus_add_watch (bus, bus_error_callback, NULL); + bus_source = gst_bus_add_watch (bus, bus_error_callback, NULL); gst_bus_enable_sync_message_emission (bus); g_signal_connect (bus, "sync-message::error", @@ -396,6 +397,7 @@ run_shm_transmitter_test (gint flags) g_object_unref (trans); + g_source_remove (bus_source); gst_object_unref (pipeline); g_cond_clear (&cond); |