PVS: V773 A memory leak is possible

This commit is contained in:
wmayer
2019-02-17 18:40:06 +01:00
parent f581d5c8cb
commit 3845350c0a
22 changed files with 74 additions and 69 deletions

View File

@@ -407,6 +407,8 @@ timersensorcallback(void * data, SoSensor *)
void AnimationTexture(SoSeparator * root)
{
// Scene graph
if ( root == NULL ) return; // Shouldn't happen.
// Generate a julia set to use as a texturemap
julia(cr, ci, 2.5, texturewidth, textureheight, 4, bitmap, 64);
@@ -425,8 +427,6 @@ void AnimationTexture(SoSeparator * root)
texturetimer->setInterval(0.05);
texturetimer->schedule();
// Scene graph
if ( root == NULL ) return; // Shouldn't happen.
root->ref(); // prevent from being deleted because of the still running timer sensor
// SoSeparator * root = new SoSeparator;
// root->ref();