Text, Texture: Call glDeleteTextures() when destroyed
Fix some errors and leaks detected by valgrind
Merge pull request #13 from crumblingstatue/master

lel