Skip to content

Commit

Permalink
Fix the memory leaks.
Browse files Browse the repository at this point in the history
  • Loading branch information
IntegratedQuantum committed May 27, 2024
1 parent be5143a commit e473e56
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gui/gui.zig
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,7 @@ pub fn toggleWindow(id: []const u8) void {
for(openWindows.items, 0..) |_openWindow, i| {
if(_openWindow == window) {
_ = openWindows.swapRemove(i);
window.onCloseFn();
selectedWindow = null;
return;
}
Expand Down

0 comments on commit e473e56

Please sign in to comment.