buffer_ref of commit data can be changed to null when client destroy wl_buffer.
the problem is occurred when client destroy wl_buffer between commit and
commit_handler.
this patch use cursor info of the commit_data instead buffer_ref for checking
whether the commit_data enable/disable display.
Change-Id: I23d3c986a499c0bdfe81495e9c166a4f82c32f91
CLEAR(info);
- if (commit_data->buffer_ref.buffer)
+ if (memcmp(&commit_data->info, &info, sizeof(tdm_hwc_window_info)))
{
e_comp_wl_buffer_reference(&hwc_window->display.buffer_ref,
commit_data->buffer_ref.buffer);