Skip to content

Commit

Permalink
UPBGE: Fix mem leak
Browse files Browse the repository at this point in the history
  • Loading branch information
youle31 committed Mar 7, 2025
1 parent ed7d720 commit 6aef3a7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/blender/draw/intern/draw_manager_c.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3379,6 +3379,9 @@ void DRW_game_viewport_render_loop_end()
MEM_freeN(debug_bge->texts);
debug_bge->texts = (DRWDebugText2D *)next;
}

MEM_delete(debug_bge);
debug_bge = nullptr;
}

void DRW_game_python_loop_end(ViewLayer * /*view_layer*/)
Expand Down

0 comments on commit 6aef3a7

Please sign in to comment.