Change-Id: If8c8f2c61248125dca481e308148bd5cc584bb6d
/*
- * Copyright (c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2021 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
DALI_ASSERT_DEBUG(pixels);
rows = reinterpret_cast< png_bytep* >( malloc(sizeof(png_bytep) * height) );
+ if(!rows)
+ {
+ DALI_LOG_ERROR("malloc is failed\n");
+ return false;
+ }
+
for(y=0; y<height; y++)
{
rows[y] = pixels + y * stride;