hedgewars/uTextures.pas
changeset 6390 3807d4cad077
parent 6380 1ff5ad1d771b
child 6394 f0a9042e7387
--- a/hedgewars/uTextures.pas	Wed Nov 16 15:16:17 2011 -0500
+++ b/hedgewars/uTextures.pas	Wed Nov 16 16:36:17 2011 -0500
@@ -226,7 +226,12 @@
 
 procedure freeModule;
 begin
-    while TextureList <> nil do FreeTexture(TextureList);
+    if TextureList <> nil then AddFileLog('FIXME FIXME FIXME. App shutdown without full cleanup of texture list.');
+    while TextureList <> nil do 
+        begin
+        AddFileLog('Texture not freed: width='+inttostr(LongInt(TextureList^.w))+' height='+inttostr(LongInt(TextureList^.h))+' priority='+inttostr(round(TextureList^.priority*1000)));
+        FreeTexture(TextureList);
+        end
 end;
 
 end.