Mercurial > projects > ldc
changeset 1475:1f29cbc36bf5
Fix memory leak in configfile.cpp...probably the only one in ldc!
author | Kelly Wilson <wilsonk cpsc.ucalgary.ca> |
---|---|
date | Thu, 04 Jun 2009 16:46:05 -0600 |
parents | 39f4b01e2008 |
children | df0ffca8a636 |
files | gen/configfile.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/gen/configfile.cpp Thu Jun 04 16:06:35 2009 -0600 +++ b/gen/configfile.cpp Thu Jun 04 16:46:05 2009 -0600 @@ -58,7 +58,7 @@ #if _WIN32 char buf[256]; GetModuleFileName(NULL, buf, 256); - p = *(new std::string(buf)); + p = buf; #else // 4) try next to the executable p = sys::Path::GetMainExecutable(argv0, mainAddr);