virtual: fix wrong sizeof argument
[platform/core/uifw/libtdm.git] / src / tdm_output.c
index 43efed1..6516b6c 100644 (file)
@@ -526,7 +526,7 @@ tdm_output_add_mode_change_request_handler(tdm_output *output,
                }
        }
 
-       mode_change_handler = calloc(1, sizeof(tdm_private_output_change_handler));
+       mode_change_handler = calloc(1, sizeof(tdm_private_output_mode_change_handler));
        if (!mode_change_handler) {
                /* LCOV_EXCL_START */
                TDM_ERR("failed: alloc memory");