OpenSceneGraph/src/osgPlugins
Robert Osfield 34e611a64c From Ryan Kawicki, "I found a memory leak within the Terrex plugin.
Out application has the ability to switch to different types of terrains on the fly.  This problem only exists in this type of situation.

The TXPArchive is held by the ReadWriterTXP class.  When the TXPNode, which is the top level node, is released from memory, the archive associated to that TXPNode is also released.  The issue is that the reference count on the TXPArchive never gets to zero.

The reason why the reference count never gets to zero is because the TXPParse, which is owned by the TXPArchive, stores a ref_ptr to the TXPArchive.  You can then see why this becomes a problem.  The TXPParser's ref_ptr cannot be unreferenced since the TXPArchive has not released the TXPParser.

Since the TXPParser is fully contained within the TXPArchive, I don't see the reason to have the TXPParser have a ref_ptr to the TXPArchive.  I've made this change locally and have had no problems and our memory leak has been fixed.
"
2010-07-31 09:04:18 +00:00
..
3dc Converted osg::notify to OSG_INFO etc. 2010-05-28 16:29:53 +00:00
3ds Converted osg::notify to OSG_INFO etc. 2010-05-28 16:29:53 +00:00
ac Converted osg::notify to OSG_INFO etc. 2010-05-28 16:30:36 +00:00
bmp Converted osg::notify to OSG_INFO etc. 2010-05-28 17:14:29 +00:00
bsp Converted osg::notify to OSG_INFO etc. 2010-05-28 16:30:58 +00:00
bvh Converted osg::notify to OSG_INFO etc. 2010-05-28 16:31:17 +00:00
cfg Converted osg::notify to OSG_INFO etc. 2010-05-28 16:31:38 +00:00
curl Converted osg::notify to OSG_INFO etc. 2010-05-28 16:32:06 +00:00
dae Converted osg::notify to OSG_INFO 2010-05-28 16:24:04 +00:00
dds Converted osg::notify to OSG_INFO etc. 2010-05-28 16:32:51 +00:00
dicom Converted osg::notify to use info 2010-05-28 16:28:18 +00:00
directshow Converted osg::notify to OSG_INFO etc. 2010-05-28 16:37:10 +00:00
dot From Farshid Lashkari, "I modified some plugins to use the osgDB file stream functions in order to support UTF-8 encoded filenames." 2010-05-13 11:01:06 +00:00
dw Converted osg::notify to OSG_INFO etc. 2010-05-28 16:37:40 +00:00
dxf Converted osg::notify to OSG_INFO etc. 2010-05-28 16:38:00 +00:00
exr Converted osg::notify to OSG_INFO etc. 2010-05-28 16:38:19 +00:00
fbx From Sukender: polygon tessellation 2010-07-21 17:34:28 +00:00
ffmpeg From Magnus Kessler, "FFmpeg headers need __STDC_CONSTANT_MACROS defined before stdint.h is loaded. 2010-06-23 14:38:49 +00:00
freetype Fixed duplicate vertices in Font3D outline generation 2010-07-15 11:31:07 +00:00
gdal Converted osg::notify to OSG_INFO etc. 2010-05-28 17:15:47 +00:00
gecko Converted osg::notify to OSG_INFO etc. 2010-05-28 16:42:57 +00:00
geo Converted osg::notify to OSG_INFO etc. 2010-05-28 16:41:37 +00:00
gif Converted osg::notify to OSG_INFO etc. 2010-05-28 16:41:53 +00:00
glsl From Stephane Lamoliatte, "Here is a patch wich improves the support for geometry shaders in OpenSceneGraph. 2009-10-10 09:41:28 +00:00
gz Converted osg::notify to OSG_INFO etc. 2010-05-28 16:42:24 +00:00
hdr Ported osgUtil, osgDB, osgGA, NodeKits and plugins to compile against OpenGL ES 1.1 and OpenGL ES 2.0. 2009-10-28 20:31:57 +00:00
imageio Converted osg::notify to OSG_INFO etc. 2010-05-28 17:16:49 +00:00
Inventor From Jim Vaughan, "The attached file fixes a bug in the Inventor loader that causes texture images to have r with a value of zero. 2010-06-17 11:01:40 +00:00
ive Converted osg::notify to OSG_INFO etc. 2010-05-28 16:27:02 +00:00
jp2 Converted osg::notify to OSG_INFO etc. 2010-05-28 16:44:28 +00:00
jpeg From Farshid Lashkari, "I modified some plugins to use the osgDB file stream functions in order to support UTF-8 encoded filenames." 2010-05-13 11:01:06 +00:00
logo Converted osg::notify to OSG_INFO etc. 2010-05-28 16:45:32 +00:00
lwo Converted osg::notify to OSG_INFO etc. 2010-05-28 16:47:42 +00:00
lws Converted osg::notify to OSG_INFO etc. 2010-05-28 16:44:08 +00:00
md2 Converted osg::notify to OSG_INFO etc. 2010-05-28 16:48:05 +00:00
mdl Converted osg::notify to OSG_INFO etc. 2010-05-28 17:14:11 +00:00
normals Converted osg::notify to OSG_INFO etc. 2010-05-28 16:48:31 +00:00
obj Converted osg::notify to OSG_INFO 2010-05-28 16:27:37 +00:00
ogr Converted osg::notify to OSG_INFO etc. 2010-05-28 16:49:23 +00:00
OpenFlight Converted osg::notify to OSG_INFO etc. 2010-05-28 16:22:02 +00:00
osg From Wang Rui, fixes to handling of indentation. 2010-07-29 16:09:49 +00:00
osga Converted osg::notify to OSG_INFO etc. 2010-05-28 16:50:29 +00:00
osgtgz Converted osg::notify to OSG_INFO etc. 2010-05-28 16:50:45 +00:00
p3d Converted osg::notify to OSG_INFO etc. 2010-05-28 16:28:58 +00:00
pdf Converted osg::notify to OSG_INFO etc. 2010-05-28 17:17:09 +00:00
pfb Converted osg::notify to OSG_INFO etc. 2010-05-28 16:51:18 +00:00
pic From Philip Lowman, clean up of CMake files 2009-04-09 09:23:45 +00:00
ply Converted osg::notify to OSG_INFO etc. 2010-05-28 16:52:45 +00:00
png Converted osg::notify to OSG_INFO etc. 2010-05-28 16:53:46 +00:00
pnm Converted osg::notify to OSG_INFO etc. 2010-05-28 16:54:08 +00:00
qfont Converted osg::notify to OSG_INFO etc. 2010-05-28 16:54:45 +00:00
quicktime Converted osg::notify to OSG_INFO etc. 2010-05-28 17:05:46 +00:00
revisions Converted osg::notify to OSG_INFO etc. 2010-05-28 17:06:10 +00:00
rgb From Mathias Froehlich, "While tracking some valgrind problems in flightgear, I found a remaining off by 2010-06-01 11:51:37 +00:00
rot Converted osg::notify to OSG_INFO etc. 2010-05-28 17:07:01 +00:00
scale Converted osg::notify to OSG_INFO etc. 2010-05-28 17:07:24 +00:00
shadow Converted osg::notify to OSG_INFO etc. 2010-05-28 17:07:44 +00:00
shp Converted osg::notify to OSG_INFO etc. 2010-05-28 17:08:10 +00:00
stl Converted osg::notify to OSG_INFO etc. 2010-05-28 17:08:30 +00:00
svg From Jeremy Moles, "Somehow, the SVG reader plugin has gone all this time without actually 2009-11-20 10:56:54 +00:00
terrain Converted osg::notify to OSG_INFO etc. 2010-05-28 17:09:15 +00:00
tga From Philip Lowman, clean up of CMake files 2009-04-09 09:23:45 +00:00
tgz Converted osg::notify to OSG_INFO etc. 2010-05-28 17:09:36 +00:00
tiff Converted osg::notify to OSG_INFO etc. 2010-05-28 17:10:06 +00:00
trans Converted osg::notify to OSG_INFO etc. 2010-05-28 17:10:27 +00:00
txf Converted osg::notify to OSG_INFO etc. 2010-05-28 17:14:58 +00:00
txp From Ryan Kawicki, "I found a memory leak within the Terrex plugin. 2010-07-31 09:04:18 +00:00
view Converted osg::notify to OSG_INFO etc. 2010-05-28 17:11:14 +00:00
vnc Converted osg::notify to OSG_INFO etc. 2010-05-28 17:11:35 +00:00
vrml Fixed permissions 2010-06-03 16:02:01 +00:00
vtf Converted osg::notify to OSG_INFO etc. 2010-05-28 17:12:14 +00:00
x Converted osg::notify to OSG_INFO etc. 2010-05-28 17:12:55 +00:00
xine Converted osg::notify to OSG_INFO etc. 2010-05-28 17:13:20 +00:00
zip Converted osg::notify to OSG_INFO etc. 2010-05-28 17:13:41 +00:00
CMakeLists.txt From Mathias Froehlich, "If you want to have that qfont plugin loader, this is the updated 2010-03-05 15:46:17 +00:00