diff options
Diffstat (limited to 'src/buffer_handler.c')
-rw-r--r-- | src/buffer_handler.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/buffer_handler.c b/src/buffer_handler.c index 1721e86..7da0214 100644 --- a/src/buffer_handler.c +++ b/src/buffer_handler.c @@ -1,7 +1,7 @@ /* * Copyright 2013 Samsung Electronics Co., Ltd * - * Licensed under the Flora License, Version 1.0 (the "License"); + * Licensed under the Flora License, Version 1.1 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * @@ -1026,13 +1026,14 @@ HAPI int buffer_handler_pixmap_unref(void *buffer_ptr) s_info.pixmap_list = eina_list_remove(s_info.pixmap_list, buffer); + info = buffer->info; + if (destroy_gem(buffer) < 0) ErrPrint("Failed to destroy gem buffer\n"); if (destroy_pixmap(buffer) < 0) ErrPrint("Failed to destroy pixmap\n"); - info = buffer->info; if (info && info->buffer == buffer) info->buffer = NULL; |