X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FTexture.h;h=69226761fcf50fcfba8806f2e6d1e8f3d60d3433;hb=2f9be777321ac8047a56c94e3af298fe2bd341c0;hp=4424cee68a47656c785d5297d82aa1655598b574;hpb=01a48eb9a98fa8c7d407077aa69d493e74eb86cd;p=lugaru.git diff --git a/Source/Texture.h b/Source/Texture.h index 4424cee..6922676 100644 --- a/Source/Texture.h +++ b/Source/Texture.h @@ -2,7 +2,6 @@ #include //keeps track of which textures are loaded -//TODO: delete them properly class Texture { private: static std::map textures; @@ -22,9 +21,7 @@ class Texture { Texture(): isSkin(false), skinsize(0), arraySize(0), fileName(""), id(0), mipmap(false), hasalpha(false), array(NULL) { } - ~Texture() { - free(array); - } + ~Texture(); Texture (const std::string& _fileName, bool _mipmap, bool _hasalpha): isSkin(false), skinsize(0), arraySize(0), array(NULL), fileName(_fileName), id(0), mipmap(_mipmap), hasalpha(_hasalpha) { }