Jump to content

  • Log In with Google      Sign In   
  • Create Account

FREE SOFTWARE GIVEAWAY

We have 4 x Pro Licences (valued at $59 each) for 2d modular animation software Spriter to give away in this Thursday's GDNet Direct email newsletter.


Read more in this forum topic or make sure you're signed up (from the right-hand sidebar on the homepage) and read Thursday's newsletter to get in the running!


#ActualIncidentRay

Posted 21 March 2013 - 10:52 PM

template void safe_delete(T* x) { delete x; x = NULL; }

 

This should probably be safe_delete(T*& x) as otherwise you're only assigning the local variable to NULL.


#1IncidentRay

Posted 21 March 2013 - 10:52 PM

template void safe_delete(T* x) { delete x; x = NULL; }

 

This should probably be safe_delete(T*& x) as otherwise you're only local variable to NULL.


PARTNERS