home · contact · privacy
Cleaned up memory allocation by Win initialization.
[plomrogue] / src / wincontrol.h
index c8dc83ba79b430a37d41076e9a18a114ed057912..cb7d0ba85b7cb932b638e56244c1076da911e7c3 100644 (file)
@@ -16,12 +16,18 @@ struct World;
 
 
 
+/* Free allocated memory for an initialized Win struct. */
+extern void free_win(struct Win * win);
+
+
+
+
 /* Wrapper around init_win() that reads the desired window size and title from a
  * file at the path prefixing the provided win name "w_name" with
  * "config/windows/". "f"() is the window drawing function (Win._draw()).
  */
-extern struct Win init_win_from_file(struct World * world, char * w_name,
-                                     void (* f) (struct Win *));
+extern struct Win init_win_from_file(struct World * world, char * w_name,
+                                       void (* f) (struct Win *));