Fixed memory leak.

This commit is contained in:
Ryan C. Gordon 2013-08-20 13:36:34 -04:00
parent 7a42f7dd41
commit 26f5eb481e
1 changed files with 1 additions and 0 deletions

View File

@ -412,6 +412,7 @@ char *__PHYSFS_platformCalcPrefDir(const char *org, const char *app)
} /* if */ } /* if */
sprintf(retval, "%s\\%s\\%s\\", utf8, org, app); sprintf(retval, "%s\\%s\\%s\\", utf8, org, app);
allocator.Free(utf8);
return retval; return retval;
} /* __PHYSFS_platformCalcPrefDir */ } /* __PHYSFS_platformCalcPrefDir */