[fix] fix DestroyPeer() method object delete

This commit is contained in:
dijunkun
2024-08-14 16:37:54 +08:00
parent c056bb6f7d
commit d6599abf81
3 changed files with 20 additions and 8 deletions

View File

@@ -75,7 +75,7 @@ typedef struct {
DLLAPI PeerPtr* CreatePeer(const Params* params);
DLLAPI void DestroyPeer(PeerPtr* peer_ptr);
DLLAPI void DestroyPeer(PeerPtr** peer_ptr);
DLLAPI int Init(PeerPtr* peer_ptr, const char* user_id);