Fix incorrect allocation size

This commit is contained in:
Campbell Barton 2017-11-03 19:23:47 +11:00
parent fbb9b70484
commit d19d094ca9
Notes: blender-bot 2023-02-14 06:17:14 +01:00
Referenced by issue #53683, 2.79a release
1 changed files with 1 additions and 1 deletions

View File

@ -2963,7 +2963,7 @@ uiPieMenu *UI_pie_menu_begin(struct bContext *C, const char *title, int icon, co
wmWindow *win = CTX_wm_window(C);
style = UI_style_get_dpi();
pie = MEM_callocN(sizeof(uiPopupMenu), "pie menu");
pie = MEM_callocN(sizeof(*pie), "pie menu");
pie->block_radial = UI_block_begin(C, NULL, __func__, UI_EMBOSS);
/* may be useful later to allow spawning pies