encodebin: fix new profile unref

This commit is contained in:
Wim Taymans 2011-03-28 17:02:26 +02:00
parent e6dc4c189d
commit a9b2e095ff
2 changed files with 2 additions and 2 deletions

View file

@ -435,7 +435,7 @@ gst_encoding_container_profile_finalize (GObject * 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_OBJECT_CLASS (gst_encoding_container_profile_parent_class)->finalize

View file

@ -107,7 +107,7 @@ gst_encoding_target_finalize (GObject * object)
if (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);
}