Skip to content

Commit

Permalink
Add DllCrtFree implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
Aurumaker72 authored and gonetz committed Jan 13, 2024
1 parent a367b3e commit 9146cd7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/ZilmarGFX_1_3.h
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,14 @@ EXPORT void CALL ViWidthChanged (void);
******************************************************************/
EXPORT void CALL ReadScreen (void **dest, long *width, long *height);

/******************************************************************
Function: DllCrtFree
Purpose: Frees the memory at the specified address with the dll's standard library
Input: none
Output: none
******************************************************************/
EXPORT void CALL DllCrtFree(void* addr);

#if defined(__cplusplus)
}
#endif
Expand Down
5 changes: 5 additions & 0 deletions src/ZilmarPluginAPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,9 @@ EXPORT void CALL ReadScreen (void **dest, long *width, long *height)
api().ReadScreen(dest, width, height);
}

EXPORT void CALL DllCrtFree(void* addr)
{
free(addr);
}

}

0 comments on commit 9146cd7

Please sign in to comment.