Browse Source

More memleak fixes.

Darryl Pogue 13 years ago
parent
commit
eef108e025
  1. 2
      Sources/Plasma/PubUtilLib/plFile/plSecureStream.cpp

2
Sources/Plasma/PubUtilLib/plFile/plSecureStream.cpp

@ -187,6 +187,7 @@ hsBool plSecureStream::Open(const wchar* name, const wchar* mode)
#elif HS_BUILD_FOR_UNIX #elif HS_BUILD_FOR_UNIX
const char* cname = hsWStringToString(name); const char* cname = hsWStringToString(name);
fRef = fopen(cname, "rb"); fRef = fopen(cname, "rb");
delete[] cname;
fPosition = 0; fPosition = 0;
@ -632,6 +633,7 @@ bool plSecureStream::IsSecureFile(const wchar* fileName)
#elif HS_BUILD_FOR_UNIX #elif HS_BUILD_FOR_UNIX
const char* cfile = hsWStringToString(fileName); const char* cfile = hsWStringToString(fileName);
fp = fopen(cfile, "rb"); fp = fopen(cfile, "rb");
delete[] cfile;
#endif #endif
if (fp == INVALID_HANDLE_VALUE) if (fp == INVALID_HANDLE_VALUE)

Loading…
Cancel
Save