mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-24 07:00:05 -05:00
fix various leaks
This commit is contained in:
parent
bc73610dd0
commit
6b19e7a2d8
6 changed files with 92 additions and 45 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue