forked from irungentoo/toxcore
-
Notifications
You must be signed in to change notification settings - Fork 302
make Tox_Options self contained #908
Copy link
Copy link
Open
Labels
P2Medium priorityMedium prioritycleanupInternal code cleanup, possibly affecting semantics, e.g. deleting a deprecated feature.Internal code cleanup, possibly affecting semantics, e.g. deleting a deprecated feature.
Milestone
Metadata
Metadata
Assignees
Labels
P2Medium priorityMedium prioritycleanupInternal code cleanup, possibly affecting semantics, e.g. deleting a deprecated feature.Internal code cleanup, possibly affecting semantics, e.g. deleting a deprecated feature.
tox.hhttps://github.com/TokTok/c-toxcore/blob/master/toxcore/tox.h#L557 says:For
savedata_dataandproxy_host. I think we should change this so that the setter function copies the data and the destructor frees the memory. Optionally we can could also take ownership of the pointer passed and only free it in the destructor, but I don't think this is a good design practice.This doesn't break the API, so it should be safe to implement.