mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 09:40:37 +00:00
discoverer: Plug some leaks in the cache loading path
This commit is contained in:
parent
bdb43689a9
commit
e0ebd29a17
2 changed files with 5 additions and 0 deletions
|
@ -377,6 +377,8 @@ gst_discoverer_info_finalize (GObject * object)
|
|||
if (info->toc)
|
||||
gst_toc_unref (info->toc);
|
||||
|
||||
g_free (info->cachefile);
|
||||
|
||||
g_ptr_array_unref (info->missing_elements_details);
|
||||
}
|
||||
|
||||
|
|
|
@ -1526,6 +1526,7 @@ discoverer_collect (GstDiscoverer * dc)
|
|||
|
||||
g_file_set_contents (dc->priv->current_info->cachefile,
|
||||
g_variant_get_data (variant), g_variant_get_size (variant), NULL);
|
||||
g_variant_unref (variant);
|
||||
}
|
||||
|
||||
if (dc->priv->async)
|
||||
|
@ -1813,6 +1814,7 @@ _serialized_info_get_path (GstDiscoverer * dc, gchar * uri)
|
|||
res = g_build_filename (cache_dir, &checksum[2], NULL);
|
||||
|
||||
done:
|
||||
g_checksum_free (cs);
|
||||
g_free (cache_dir);
|
||||
g_free (location);
|
||||
g_free (tmp);
|
||||
|
@ -1842,6 +1844,7 @@ _get_info_from_cachefile (GstDiscoverer * dc, gchar * cachefile)
|
|||
}
|
||||
|
||||
GST_INFO_OBJECT (dc, "Got info from cache: %p", info);
|
||||
g_free (data);
|
||||
|
||||
return info;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue