vaapiencode/libs: encoder: fix leaks of properties

https://bugzilla.gnome.org/show_bug.cgi?id=786321
This commit is contained in:
Hyunjun Ko 2017-09-15 15:14:47 +09:00 committed by Víctor Manuel Jáquez Leal
parent 2eb2b26ad8
commit 148f867c12
2 changed files with 3 additions and 0 deletions

View file

@ -1263,6 +1263,8 @@ gst_vaapi_encoder_init_properties (GstVaapiEncoder * encoder)
NULL) != GST_VAAPI_ENCODER_STATUS_SUCCESS)
return FALSE;
}
g_ptr_array_unref (props);
return TRUE;
}

View file

@ -939,6 +939,7 @@ gst_vaapiencode_init_properties (GstVaapiEncode * encode)
return FALSE;
g_ptr_array_add (encode->prop_values, prop_value);
}
g_ptr_array_unref (props);
return TRUE;
}