encodebin: fix new profile unref
This commit is contained in:
parent
e6dc4c189d
commit
a9b2e095ff
@ -435,7 +435,7 @@ gst_encoding_container_profile_finalize (GObject * object)
|
|||||||
{
|
{
|
||||||
GstEncodingContainerProfile *prof = (GstEncodingContainerProfile *) object;
|
GstEncodingContainerProfile *prof = (GstEncodingContainerProfile *) object;
|
||||||
|
|
||||||
g_list_foreach (prof->encodingprofiles, (GFunc) gst_mini_object_unref, NULL);
|
g_list_foreach (prof->encodingprofiles, (GFunc) g_object_unref, NULL);
|
||||||
g_list_free (prof->encodingprofiles);
|
g_list_free (prof->encodingprofiles);
|
||||||
|
|
||||||
G_OBJECT_CLASS (gst_encoding_container_profile_parent_class)->finalize
|
G_OBJECT_CLASS (gst_encoding_container_profile_parent_class)->finalize
|
||||||
|
@ -107,7 +107,7 @@ gst_encoding_target_finalize (GObject * object)
|
|||||||
if (target->description)
|
if (target->description)
|
||||||
g_free (target->description);
|
g_free (target->description);
|
||||||
|
|
||||||
g_list_foreach (target->profiles, (GFunc) gst_mini_object_unref, NULL);
|
g_list_foreach (target->profiles, (GFunc) g_object_unref, NULL);
|
||||||
g_list_free (target->profiles);
|
g_list_free (target->profiles);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user