X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FTexture.h;h=ca68a3f576f85c50a488bfcfdd94ff059e51069e;hb=bb61e3fc1a36858b603d3a3fc2058f7c63f081c5;hp=4424cee68a47656c785d5297d82aa1655598b574;hpb=5f4592dd289b1c00cfabcbbdd9e10dc534971ce7;p=lugaru.git diff --git a/Source/Texture.h b/Source/Texture.h index 4424cee..ca68a3f 100644 --- a/Source/Texture.h +++ b/Source/Texture.h @@ -22,9 +22,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) { }