Change-Id: I9028c891ecbcabdb815c070ca414124f2206e392
Signed-off-by: Sung-Jin Park <sj76.park@samsung.com>
image->image.delay = images->images[i]->delay;
size = image->image.width * image->image.height * 4;
+ if ((theme->pool->used + size) > theme->pool->size) {
+ shm_pool_destroy(theme->pool);
+ theme->pool = shm_pool_create(theme->shm, 2 * theme->pool->size + size);
+ if (!theme->pool) {
+ free(image);
+ break;
+ }
+ }
+
image->offset = shm_pool_allocate(theme->pool, size);
if (image->offset < 0) {
free(image);
theme->size = size;
theme->cursor_count = 0;
theme->cursors = NULL;
+ theme->shm = shm;
theme->pool = shm_pool_create(shm, size * size * 4);
if (!theme->pool)