Show
Ignore:
Timestamp:
12/29/07 03:39:55 (15 years ago)
Author:
ppalmers
Message:

fix shutdown bug

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libffado/src/genericavc/avc_avdevice.cpp

    r750 r784  
    5757                 getConfigRom().getNodeId() ); 
    5858    addOption(Util::OptionContainer::Option("snoopMode",false)); 
     59} 
     60 
     61AvDevice::~AvDevice() 
     62{ 
     63    for ( StreamProcessorVectorIterator it = m_receiveProcessors.begin(); 
     64          it != m_receiveProcessors.end(); 
     65          ++it ) 
     66    { 
     67        delete *it; 
     68    } 
     69    for ( StreamProcessorVectorIterator it = m_transmitProcessors.begin(); 
     70          it != m_transmitProcessors.end(); 
     71          ++it ) 
     72    { 
     73        delete *it; 
     74    } 
    5975} 
    6076 
  • trunk/libffado/src/genericavc/avc_avdevice.h

    r750 r784  
    4949public: 
    5050    AvDevice( DeviceManager& d, std::auto_ptr<ConfigRom>( configRom )); 
    51     virtual ~AvDevice() {}
    52  
     51    virtual ~AvDevice()
     52     
    5353    static bool probe( ConfigRom& configRom ); 
    5454    virtual bool discover(); 
     
    9595    // streaming stuff 
    9696    typedef std::vector< Streaming::StreamProcessor * > StreamProcessorVector; 
     97    typedef std::vector< Streaming::StreamProcessor * >::iterator StreamProcessorVectorIterator; 
    9798    StreamProcessorVector m_receiveProcessors; 
    9899    StreamProcessorVector m_transmitProcessors;