Skip to content

Commit 5c2ea48

Browse files
committed
Specified the groups used with existing smartAlloc calls
1 parent 380a1e4 commit 5c2ea48

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

ttyd-tools/rel/source/draw.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4718,7 +4718,8 @@ void Mod::errorHandler(uint16_t error, gc::OSContext::OSContext *context, uint32
47184718

47194719
// Init memory for the strings
47204720
ttyd::memory::SmartAllocationData *ErrorHandlerStringsMemory =
4721-
ttyd::memory::smartAlloc(sizeof(ErrorHandlerStrings), 0);
4721+
ttyd::memory::smartAlloc(sizeof(ErrorHandlerStrings),
4722+
ttyd::memory::SmartAllocationGroup::kNone);
47224723

47234724
// Set up a temporary local variable to use for getting the strings memory
47244725
ErrorHandlerStrings *ErrorHandler = reinterpret_cast<ErrorHandlerStrings *>(ErrorHandlerStringsMemory->pMemory);
@@ -4886,12 +4887,14 @@ void Mod::errorHandler(uint16_t error, gc::OSContext::OSContext *context, uint32
48864887
if (CurrentFontEncode == 0)
48874888
{
48884889
// ANSI
4889-
FontDataMemory = ttyd::memory::smartAlloc(0x20120, 0);
4890+
FontDataMemory = ttyd::memory::smartAlloc(0x20120,
4891+
ttyd::memory::SmartAllocationGroup::kNone);
48904892
}
48914893
else
48924894
{
48934895
// SJIS
4894-
FontDataMemory = ttyd::memory::smartAlloc(0x120F00, 0);
4896+
FontDataMemory = ttyd::memory::smartAlloc(0x120F00,
4897+
ttyd::memory::SmartAllocationGroup::kNone);
48954898
}
48964899

48974900
// Init the font data

0 commit comments

Comments
 (0)