diff gui/ui/actions.c @ 35796:497a1c45a597

Add uiMainDone(), uiVideoDone(), uiPlaybarDone() and uiMenuDone(). These are the counterparts to the Init functions and they free and release everything associated with the respective window. (Something that hasn't been done so far.)
author ib
date Fri, 25 Jan 2013 23:47:34 +0000
parents 5eac7c0879b7
children fa803d807b58
line wrap: on
line diff
--- a/gui/ui/actions.c	Fri Jan 25 22:31:37 2013 +0000
+++ b/gui/ui/actions.c	Fri Jan 25 23:47:34 2013 +0000
@@ -639,14 +639,13 @@
     /* reload playbar */
 
     if (bprev)
-        wsWindowDestroy(&guiApp.playbarWindow);
+        uiPlaybarDone();
 
     uiPlaybarInit();
 
     /* reload main window */
 
-    wsWindowDestroy(&guiApp.mainWindow);
-
+    uiMainDone();
     uiMainInit();
 
     wsWindowVisibility(&guiApp.mainWindow, wsShowWindow);