File tree 2 files changed +14
-0
lines changed
Generals/Code/GameEngineDevice/Source/W3DDevice/GameClient
GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient
2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -376,11 +376,18 @@ W3DDisplay::~W3DDisplay()
376
376
377
377
// get rid of the debug display
378
378
delete m_debugDisplay;
379
+ m_debugDisplay = NULL ;
380
+ m_nativeDebugDisplay = NULL ;
379
381
380
382
// delete the display strings
381
383
for (int i = 0 ; i < DisplayStringCount; i++)
382
384
TheDisplayStringManager->freeDisplayString (m_displayStrings[i]);
383
385
386
+ // TheSuperHackers @fix Mauller/Tomsons26 28/04/2025 Delete benchmark display string to allow the clean destruction of the DisplayStringManager
387
+ if ( m_benchmarkDisplayString ) {
388
+ TheDisplayStringManager->freeDisplayString (m_benchmarkDisplayString);
389
+ }
390
+
384
391
// delete 2D renderer
385
392
if ( m_2DRender )
386
393
{
Original file line number Diff line number Diff line change @@ -426,11 +426,18 @@ W3DDisplay::~W3DDisplay()
426
426
427
427
// get rid of the debug display
428
428
delete m_debugDisplay;
429
+ m_debugDisplay = NULL ;
430
+ m_nativeDebugDisplay = NULL ;
429
431
430
432
// delete the display strings
431
433
for (int i = 0 ; i < DisplayStringCount; i++)
432
434
TheDisplayStringManager->freeDisplayString (m_displayStrings[i]);
433
435
436
+ // TheSuperHackers @fix Mauller/Tomsons26 28/04/2025 Delete benchmark display string to allow the clean destruction of the DisplayStringManager
437
+ if ( m_benchmarkDisplayString ) {
438
+ TheDisplayStringManager->freeDisplayString (m_benchmarkDisplayString);
439
+ }
440
+
434
441
// delete 2D renderer
435
442
if ( m_2DRender )
436
443
{
You can’t perform that action at this time.
0 commit comments