expose free function

This commit is contained in:
Czarek Nakamoto
2024-05-01 14:02:30 +02:00
parent b739dd6b51
commit cd90f3bcd0
6 changed files with 21 additions and 2 deletions

View File

@@ -1911,6 +1911,12 @@ uint64_t MONERO_cw_WalletListener_height(void* cw_walletListener_ptr) {
return listener->cw_isNeedToRefresh();
};
// i hate windows
void MONERO_free(void* ptr) {
free(ptr);
}
#ifdef __cplusplus
}
#endif

View File

@@ -1011,6 +1011,8 @@ extern ADDAPI bool MONERO_cw_WalletListener_isNewTransactionExist(void* cw_walle
extern ADDAPI void MONERO_cw_WalletListener_resetIsNewTransactionExist(void* cw_walletListener_ptr);
extern ADDAPI uint64_t MONERO_cw_WalletListener_height(void* cw_walletListener_ptr);
extern ADDAPI void MONERO_free(void* ptr);
#ifdef __cplusplus
}
#endif