rem: free(WMApplication.resourcePath);
add: wfree(WMApplication.resourcePath);
context: WMSetResourcePath(char *path){    if (WMApplication.resourcePath)	free(WMApplication.resourcePath);    WMApplication.resourcePath = wstrdup(path);}