mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-03 17:22:29 +00:00
project: Plug various leaks.
This commit is contained in:
parent
ac7dd69a71
commit
854228c4ea
1 changed files with 6 additions and 5 deletions
|
@ -124,7 +124,7 @@ ges_project_remove_formatter (GESProject * project, GESFormatter * formatter)
|
||||||
for (tmp = priv->formatters; tmp; tmp = tmp->next) {
|
for (tmp = priv->formatters; tmp; tmp = tmp->next) {
|
||||||
if (tmp->data == formatter) {
|
if (tmp->data == formatter) {
|
||||||
gst_object_unref (formatter);
|
gst_object_unref (formatter);
|
||||||
priv->formatters = g_list_remove_link (priv->formatters, tmp);
|
priv->formatters = g_list_delete_link (priv->formatters, tmp);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -444,13 +444,13 @@ ges_project_try_updating_id (GESProject * project, GESAsset * asset,
|
||||||
&new_id);
|
&new_id);
|
||||||
|
|
||||||
if (new_id) {
|
if (new_id) {
|
||||||
if (ges_asset_set_proxy (asset, new_id))
|
if (!ges_asset_set_proxy (asset, new_id)) {
|
||||||
return new_id;
|
|
||||||
else
|
|
||||||
g_free (new_id);
|
g_free (new_id);
|
||||||
|
new_id = NULL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return NULL;
|
return new_id;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -473,6 +473,7 @@ new_asset_cb (GESAsset * source, GAsyncResult * res, GESProject * project)
|
||||||
possible_id, NULL, (GAsyncReadyCallback) new_asset_cb, project);
|
possible_id, NULL, (GAsyncReadyCallback) new_asset_cb, project);
|
||||||
|
|
||||||
g_free (possible_id);
|
g_free (possible_id);
|
||||||
|
g_error_free (error);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue