Commit 646a7a81 authored by Normunds Rieksts's avatar Normunds Rieksts
Browse files

Fixes segfaults in the layer due to uninitialized pointer



The layer would segfault when running due to pointer being left
uninitialized when attempting to query device extensions

Change-Id: If72d822a36224034bf27bef5035015cdb0bffb07
Signed-off-by: default avatarNormunds Rieksts <normunds.rieksts@arm.com>
parent 8dc4d923
Pipeline #282450 passed with stage
in 1 minute and 19 seconds
......@@ -164,7 +164,7 @@ static const char *required_device_extensions[] = {
static std::unique_ptr<util::extension_list> populate_device_extensions()
{
std::unique_ptr<util::extension_list> ret;
std::unique_ptr<util::extension_list> ret(new util::extension_list(util::allocator::get_generic()));
ret->add(required_device_extensions, NELEMS(required_device_extensions));
return ret;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment