buffer = wl_container_of(listener, buffer, resource_destroy);
buffer->resource = NULL;
+
+ tbm_surface_internal_unref(buffer->surface);
buffer->surface = NULL;
+
wl_list_remove(&buffer->resource_destroy.link);
wl_list_init(&buffer->resource_destroy.link);
ds_buffer_init(&buffer->base, &tbm_client_buffer_iface, width, height);
buffer->resource = resource;
+ tbm_surface_internal_ref(surface);
buffer->surface = surface;
buffer->format = tbm_surface_get_format(surface);
#include <wayland-server.h>
#include <wayland-tbm-server.h>
#include <tbm_surface.h>
+#include <tbm_surface_internal.h>
#include <libds/interfaces/buffer.h>
#include <libds-tizen/types/tbm_server.h>