Change-Id: I851af07a1dd965ff7a3f0bf11f21b54277f8df10
buffer->shm_buffer = NULL;
wl_signal_init(&buffer->destroy_signal);
+ tbm_surface_internal_ref(tsurface);
+
return buffer;
}
e_pixmap_dirty(ec->pixmap);
e_pixmap_refresh(ec->pixmap);
+ tbm_surface_internal_unref(copied_tsurface);
+
return EINA_TRUE;
fail :
tsurface = e_plane_renderer_displaying_surface_get(renderer);
if (!tsurface) return;
- tbm_surface_internal_ref(tsurface);
buffer = e_comp_wl_tbm_buffer_get(tsurface);
- if (!buffer)
- {
- tbm_surface_internal_unref(tsurface);
- return;
- }
+ if (!buffer) return;
}
/* force update */