lv_mem_realloc: just truncate mem if smaller then then the old

This commit is contained in:
Gabor Kiss-Vamosi
2017-12-03 00:36:31 +01:00
parent 03d076197f
commit 43646b78ef
11 changed files with 109 additions and 63 deletions

View File

@@ -85,8 +85,7 @@ void lv_mem_monitor(lv_mem_monitor_t * mon_p);
* @param data pointer to an allocated memory
* @return the size of data memory in bytes
*/
uint32_t lv_mem_get_size(void * data);
uint32_t lv_mem_get_size(const void * data);
/**
* Halt o NULL pointer