Skip to content

Commit 0e965b4

Browse files
authored
Minor buffer fix for cegui
1 parent 257f4cd commit 0e965b4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

vendor/cegui-0.4.0-custom/src/CEGUIString.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ String::~String(void)
4949
if (d_encodedbufflen > 0)
5050
{
5151
delete[] d_encodedbuff;
52+
d_encodedbuff = nullptr;
5253
}
5354
}
5455

@@ -123,6 +124,7 @@ utf8* String::build_utf8_buff(void) const
123124
if (d_encodedbufflen > 0)
124125
{
125126
delete[] d_encodedbuff;
127+
d_encodedbuff = nullptr;
126128
}
127129

128130
d_encodedbuff = new utf8[buffsize];

0 commit comments

Comments
 (0)