Hi,

On Wednesday 12 May 2010, J.P. Delport wrote:
> I've forced the use of mutex [1] for atomic in OpenThreads and can then
> reproduce your problems under Debian - increasing memory use by
> osgviewer cow.osg.
>
> It therefore seems there is a leak in the mutex code path for atomic in
> OpenThreads. I don't have time to investigate further.
The attached patch helps a lot for this problem here.

Robert,
Do you need a correct osgsubmission for that?

Greetings

Mathias

-- 
Dr. Mathias Fröhlich, science + computing ag, Software Solutions
Hagellocher Weg 71-75, D-72070 Tuebingen, Germany
Phone: +49 7071 9457-268, Fax: +49 7071 9457-511
-- 
Vorstand/Board of Management:
Dr. Bernd Finkbeiner, Dr. Roland Niemeier, 
Dr. Arno Steitz, Dr. Ingrid Zech
Vorsitzender des Aufsichtsrats/
Chairman of the Supervisory Board:
Michel Lepert
Sitz/Registered Office: Tuebingen
Registergericht/Registration Court: Stuttgart
Registernummer/Commercial Register No.: HRB 382196 

Index: src/osg/Referenced.cpp
===================================================================
--- src/osg/Referenced.cpp	(revision 11423)
+++ src/osg/Referenced.cpp	(working copy)
@@ -254,6 +254,10 @@
 #else
     if (_observerSet) delete static_cast<ObserverSet*>(_observerSet);
 #endif
+
+#if !defined(_OSG_REFERENCED_USE_ATOMIC_OPERATIONS)
+    if (_refMutex) delete _refMutex;
+#endif
 }
 
 ObserverSet* Referenced::getOrCreateObserverSet() const
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to