tests: adaptive-stremaing: fix memory leak in test_http_src
authorFlorin Apostol <florin.apostol@oregan.net>
Thu, 14 Jan 2016 18:27:50 +0000 (18:27 +0000)
committerTim-Philipp Müller <tim@centricular.com>
Mon, 18 Jan 2016 13:09:45 +0000 (13:09 +0000)
https://bugzilla.gnome.org/show_bug.cgi?id=760600

tests/check/elements/test_http_src.c

index 88b0c4f..915bb51 100644 (file)
@@ -247,6 +247,10 @@ gst_test_http_src_reset_input (GstTestHTTPSrc * src)
     gst_structure_free (src->extra_headers);
     src->extra_headers = NULL;
   }
+  g_free (src->http_method_name);
+  src->http_method_name = NULL;
+  g_free (src->user_agent);
+  src->user_agent = NULL;
   src->duration_changed = FALSE;
 }