Reworked udp frame encoder and decoder using std::map and std::vector instead of plain Obj** arrays. Seems to be memory leak free now.