From: Seunghun Lee Date: Mon, 7 Nov 2016 07:41:18 +0000 (+0900) Subject: use the 'wl_buffer_send_release' instead of 'wl_resource_queue_event' to release... X-Git-Tag: accepted/tizen/3.0/common/20161114.082911~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F68%2F95968%2F2;p=platform%2Fcore%2Fuifw%2Fpepper.git use the 'wl_buffer_send_release' instead of 'wl_resource_queue_event' to release wl_buffer. the message added by wl_resource_queue_event() won't be delivered, if there is no calling 'wl_resource_post_event' after that. Change-Id: I7378d115a999b12ea68bdfdd57f311f2b5851a8f --- diff --git a/src/lib/pepper/buffer.c b/src/lib/pepper/buffer.c index 0c1c450..654b0a0 100644 --- a/src/lib/pepper/buffer.c +++ b/src/lib/pepper/buffer.c @@ -88,7 +88,7 @@ pepper_buffer_unreference(pepper_buffer_t *buffer) PEPPER_ASSERT(buffer->ref_count > 0); if (--buffer->ref_count == 0) { - wl_resource_queue_event(buffer->resource, WL_BUFFER_RELEASE); + wl_buffer_send_release(buffer->resource); pepper_object_emit_event(&buffer->base, PEPPER_EVENT_BUFFER_RELEASE, NULL); } }