Fixed memory leaks. Second example with texture added.

In stb and DevIL(default) version loading a texture from file causes memory leaks because allocated while loading memory not be freed.