Reworked some fixes submitted to us by ittobaal. Several fclose calls he suggested had no bearing (if fopen fails, calling fclose on a null pointer is pointless), but the (missing) array deletions were definitely valid bugs. The fix for CreateTexture() was a little loose, so I cleaned it up somewhat.
Issue: 566
This commit is contained in:
@@ -44,9 +44,9 @@ JGBKFont::JGBKFont()
|
||||
|
||||
JGBKFont::~JGBKFont()
|
||||
{
|
||||
SAFE_DELETE(mEngFont);
|
||||
SAFE_DELETE_ARRAY(mEngFont);
|
||||
|
||||
SAFE_DELETE(mChnFont);
|
||||
SAFE_DELETE_ARRAY(mChnFont);
|
||||
|
||||
SAFE_DELETE(mTexture);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user