Skip to content

Instantly share code, notes, and snippets.

@agustingianni
Created September 19, 2019 21:51
Show Gist options
  • Save agustingianni/ea0ece1377ca1b460cf693625030cf7a to your computer and use it in GitHub Desktop.
Save agustingianni/ea0ece1377ca1b460cf693625030cf7a to your computer and use it in GitHub Desktop.
class SomeClass
{
public:
void *field;
~SomeClass()
{
if (field)
{
free(field);
}
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment