What is the best way to free the memory that is occupied after a CreateSurface call?
I tried to delete just the object that was containing the CGapiSurface but that didn't free anything. Now I call CreateSurface(0,0,0,0); just before I remove the object but there must be a better way I think?
Or should I do a delete on the surface in the destructor but thats only for pointers isn't?