Changeset 20856

Show
Ignore:
Timestamp:
09/25/07 13:47:47 (1 year ago)
Author:
patrick
Message:

The Audiere and OpenAL plug-ins crash on exit (at least on Windows) when they
are told to clean up after themselves. By skipping that step in the destructor,
we avoid the crash problems, but we of course end up leaking memory. On the
bright side, it is memory that gets freed up when the process terminates, an
event that occurs shortly after the snx::sonix destructor is invoked.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • juggler/branches/2.2/modules/sonix/snx/sonix.cpp

    r19729 r20856  
    5858sonix::~sonix() 
    5959{ 
     60   // XXX: The Audiere and OpenAL plug-ins exhibit crash-on-exit behavior 
     61   // when they attempt to clean themselves up. Why this happens is unclear, 
     62   // but having the following commented out avoids the crash problems. This 
     63   // definitely needs to be fixed. -PH 9/25/2007 
     64   /* 
    6065   // release the implementation 
    6166   if (mImplementation != NULL) 
     
    6974      mImplementation = NULL; 
    7075   } 
     76   */ 
    7177} 
    7278