Page 1 of 1

Destroy CGapiSurface?

PostPosted: Apr 23, 2003 @ 11:11pm
by Karel
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?

Deletion

PostPosted: Apr 23, 2003 @ 11:32pm
by warmi

PostPosted: Apr 24, 2003 @ 12:04am
by Karel

PostPosted: Apr 24, 2003 @ 12:11am
by Johan

PostPosted: Apr 24, 2003 @ 12:29am
by efortier

PostPosted: Apr 24, 2003 @ 12:34am
by Johan