Skip to content

Commit 0c93fa0

Browse files
committed
Small memory fix in smem_container.
1 parent a2cd2b5 commit 0c93fa0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/xrCore/xrsharedmem.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ smem_value* smem_container::dock(u32 dwCRC, u32 dwLength, void* ptr)
6161
// if not found - create new entry
6262
if (0 == result)
6363
{
64-
result = (smem_value*)Memory.mem_alloc(4 * sizeof(u32) + dwLength);
64+
result = (smem_value*)xr_malloc(4 * sizeof(u32) + dwLength);
6565
result->dwReference = 0;
6666
result->dwCRC = dwCRC;
6767
result->dwLength = dwLength;

0 commit comments

Comments
 (0)