Skip to content

Commit

Permalink
Fixed a memory issue on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
tanis2000 committed Jan 24, 2025
1 parent 9b80ff1 commit 14e79b3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
# The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac.
# You can convert this to a matrix build if you need cross-platform coverage.
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
runs-on: windows-latest
runs-on: windows-2019

steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
# The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac.
# You can convert this to a matrix build if you need cross-platform coverage.
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
runs-on: windows-latest
runs-on: windows-2019

env:
RELEASE_NAME: binocle-windows-x64
Expand Down
2 changes: 1 addition & 1 deletion src/binocle/core/binocle_memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ binocle_memory_block *binocle_memory_allocate(binocle_memory_index size,
}

binocle_memory_platform_block *block =
(binocle_memory_platform_block *)SDL_malloc(total_size);
(binocle_memory_platform_block *)SDL_calloc(1, total_size);
assert(block != 0);
block->block.base = (uint8_t *)block + base_offset;
assert(block->block.used == 0);
Expand Down

0 comments on commit 14e79b3

Please sign in to comment.