hedgewars/uVisualGears.pas
changeset 2715 0e4e0db79e2a
parent 2713 71250942e95b
child 2716 b9ca1bfca24f
--- a/hedgewars/uVisualGears.pas	Sun Jan 24 19:52:30 2010 +0000
+++ b/hedgewars/uVisualGears.pas	Tue Jan 26 04:13:37 2010 +0000
@@ -48,6 +48,7 @@
 		end;
 
 procedure init_uVisualGears;
+procedure free_uVisualGears;
 function  AddVisualGear(X, Y: LongInt; Kind: TVisualGearType): PVisualGear;
 procedure ProcessVisualGears(Steps: Longword);
 procedure DrawVisualGears(Layer: LongWord);
@@ -558,5 +559,9 @@
 	VisualGearsList:= nil;
 end;
 
+procedure free_uVisualGears;
+begin
+while VisualGearsList <> nil do DeleteVisualGear(VisualGearsList);
+end;
 
 end.