fix various leaks

This commit is contained in:
Wim Taymans 2016-04-07 17:28:46 +02:00
parent bc73610dd0
commit 6b19e7a2d8
6 changed files with 92 additions and 45 deletions

View file

@ -529,8 +529,10 @@ parse_clock_info (GstPinosSrc *pinossrc)
g_object_get (pinossrc->stream, "properties", &props, NULL);
var = pinos_properties_get (props, "pinos.clock.type");
if (var == NULL)
if (var == NULL) {
pinos_properties_free (props);
return;
}
GST_DEBUG_OBJECT (pinossrc, "got clock type %s", var);
if (strcmp (var, "gst.net.time.provider") == 0) {
@ -545,6 +547,7 @@ parse_clock_info (GstPinosSrc *pinossrc)
gst_object_unref (pinossrc->clock);
pinossrc->clock = gst_net_client_clock_new ("pinosclock", address, port, 0);
}
pinos_properties_free (props);
}
static gboolean