t_ilm_uint length = wl_list_length(&ctx->wl.list_screen);
*pNumberOfIDs = 0;
- *ppIDs = (t_ilm_uint*)malloc(length * sizeof *ppIDs);
+ *ppIDs = (t_ilm_uint*)malloc(length * sizeof **ppIDs);
if (*ppIDs != NULL) {
t_ilm_uint* ids = *ppIDs;
wl_list_for_each(ctx_scrn, &ctx->wl.list_screen, link) {
t_ilm_uint length = wl_list_length(&ctx->wl.list_layer);
*pLength = 0;
- *ppArray = (t_ilm_layer*)malloc(length * sizeof *ppArray);
+ *ppArray = (t_ilm_layer*)malloc(length * sizeof **ppArray);
if (*ppArray != NULL) {
// compositor sends layers in opposite order
// write ids from back to front to turn them around
if (0 < length)
{
- *ppArray = (t_ilm_layer*)malloc(length * sizeof *ppArray);
+ *ppArray = (t_ilm_layer*)malloc(length * sizeof **ppArray);
if (*ppArray != NULL) {
// compositor sends layers in opposite order
// write ids from back to front to turn them around
t_ilm_uint length = wl_list_length(&ctx->wl.list_surface);
*pLength = 0;
- *ppArray = (t_ilm_surface*)malloc(length * sizeof *ppArray);
+ *ppArray = (t_ilm_surface*)malloc(length * sizeof **ppArray);
if (*ppArray != NULL) {
t_ilm_surface* ids = *ppArray;
wl_list_for_each_reverse(ctx_surf, &ctx->wl.list_surface, link) {
}
length = wl_list_length(&ctx_layer->order.list_surface);
- *ppArray = (t_ilm_surface*)malloc(length * sizeof *ppArray);
+ *ppArray = (t_ilm_surface*)malloc(length * sizeof **ppArray);
if (*ppArray == NULL) {
release_instance();
return ILM_FAILED;