rem: free(data->curSubIndex);
add: wfree(data->curSubIndex);
context: static void pl_closeMenuFile(WRootMenuData *data){    if (data->submenu)	free(data->submenu);    if (data->curSubIndex)	free(data->curSubIndex);    PLRelease(data->pl);        free(data);}