Fix memory size calculation
Allow explicit destruction of SDL resources
Keep track of memory allocated to buffers