glom r1645 - in trunk: . glom



Author: arminb
Date: Mon Jul 21 11:48:25 2008
New Revision: 1645
URL: http://svn.gnome.org/viewvc/glom?rev=1645&view=rev

Log:
2008-07-21  Armin Burgmeier  <armin openismus com>

	* glom/main.cc: #ifdef out the atexit() call on Windows since
	__libc_freeres() is not available there.


Modified:
   trunk/ChangeLog
   trunk/glom/main.cc

Modified: trunk/glom/main.cc
==============================================================================
--- trunk/glom/main.cc	(original)
+++ trunk/glom/main.cc	Mon Jul 21 11:48:25 2008
@@ -84,14 +84,18 @@
 
 } //namespace Glom
 
+#ifndef G_OS_WIN32
 extern "C" void __libc_freeres(void);
+#endif
 
 int 
 main(int argc, char* argv[])
 {
+#ifndef G_OS_WIN32
   //Force some cleanup at exit,
   //to help valgrind to detect memory leaks:
   atexit(__libc_freeres);
+#endif
 
   // TODO: I am not sure why, but this does not work. PYTHONPATH is set
   // correctly according to getenv(), but python still does not look in it.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]