]> git.seodisparate.com - UDPConnection/commit
Change how UDPC_PacketInfo handles it's data
authorStephen Seo <seo.disparate@gmail.com>
Wed, 15 Apr 2020 10:49:17 +0000 (19:49 +0900)
committerStephen Seo <seo.disparate@gmail.com>
Wed, 15 Apr 2020 10:56:15 +0000 (19:56 +0900)
commitcf6ff5a040656d7a61b1cb8d21c7930b91514405
tree3651ee58b0ee8dd0ddca859efd3bd51d11b0bee2
parente01a1ccd94c9d8ba0a3c8aa05a767761b90a1d6d
Change how UDPC_PacketInfo handles it's data

The "data" member variable in UDPC_PacketInfo is now handled as a
pointer to dynamic data, instead of an array with a fixed size. Every
time a UDPC_PacketInfo is received from the context,
UDPC_free_PacketInfo() must be called on it to avoid a memory leak.
src/UDPC.h
src/UDPC_Defines.hpp
src/UDPConnection.cpp
src/test/UDPC_NetworkTest.c