mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-26 02:00:33 +00:00
vaapiencode/libs: encoder: fix leaks of properties
https://bugzilla.gnome.org/show_bug.cgi?id=786321
This commit is contained in:
parent
2eb2b26ad8
commit
148f867c12
2 changed files with 3 additions and 0 deletions
|
@ -1263,6 +1263,8 @@ gst_vaapi_encoder_init_properties (GstVaapiEncoder * encoder)
|
||||||
NULL) != GST_VAAPI_ENCODER_STATUS_SUCCESS)
|
NULL) != GST_VAAPI_ENCODER_STATUS_SUCCESS)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
g_ptr_array_unref (props);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -939,6 +939,7 @@ gst_vaapiencode_init_properties (GstVaapiEncode * encode)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
g_ptr_array_add (encode->prop_values, prop_value);
|
g_ptr_array_add (encode->prop_values, prop_value);
|
||||||
}
|
}
|
||||||
|
g_ptr_array_unref (props);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue