Commit e0ebd29a authored by Thibault Saunier's avatar Thibault Saunier

discoverer: Plug some leaks in the cache loading path

parent bdb43689
Pipeline #41439 passed with stages
in 57 minutes and 9 seconds
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment