Hi

Here is a little patch to unload proprely all plugins when exiting.

This can be usefull to plugins which keep opens files, or (for me) to
write an entry to close my xml file.


Thanks

Yoda-BZH

--
o May the Force be with you
o Do it, or not, but there's no try

http://www.yoda-bzh.net
http://blog.yoda-bzh.net
http://LeaBrest.free.fr
Index: gui.tcl
===================================================================
--- gui.tcl	(revision 8532)
+++ gui.tcl	(working copy)
@@ -5885,6 +5885,9 @@
 	SaveLoginList
 	SaveStateList
 
+	# Added by Yoda-BZH, unload all plugins
+	::plugins::UnLoadPlugins
+
 	close_dock    ;# Close down the dock socket
 	catch {file delete [file join $HOME hotlog.htm]} res
 	# As suggested by Joe English, letting the idler do the exit is better since it lets the C stack unwind
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Amsn-devel mailing list
Amsn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amsn-devel

Reply via email to