tests: remove extra unref in test_setup_non_existing_stream
authorDavid Svensson Fors <davidsf@axis.com>
Wed, 20 Mar 2013 11:33:54 +0000 (12:33 +0100)
committerTim-Philipp Müller <tim@centricular.net>
Thu, 28 Mar 2013 12:54:10 +0000 (12:54 +0000)
The unref is not needed anymore, teardown runs without it.

https://bugzilla.gnome.org/show_bug.cgi?id=696542

tests/check/gst/rtspserver.c

index 3377a80..2a01aed 100644 (file)
@@ -670,11 +670,6 @@ GST_START_TEST (test_setup_non_existing_stream)
   gst_rtsp_connection_free (conn);
   stop_server ();
   iterate ();
-
-  /* need to unref the server here, otherwise threads will remain
-   * and teardown won't be run */
-  g_object_unref (server);
-  server = NULL;
 }
 
 GST_END_TEST;