Browse Source

Clean up memory on exit

master
Peter Nelson 12 years ago
parent
commit
ee3bd3d4ad
  1. 5
      cvbase.h
  2. 10
      cvin.cpp
  3. 1
      cvin.h
  4. 10
      cvout.cpp
  5. 1
      cvout.h

5
cvbase.h

@ -25,11 +25,6 @@ public:
bool find(const char *name) const;
void stop()
{
close();
}
void set_name(const char *name)
{
m_config_name = name;

10
cvin.cpp

@ -119,3 +119,13 @@ void CVIn::start()
m_it_begin = it_begin;
m_ready = true;
}
void CVIn::stop()
{
if (m_mapping_list.size() == 0) return;
close();
delete [] m_ports;
delete [] m_buffers;
}

1
cvin.h

@ -13,6 +13,7 @@ private:
public:
void start();
void stop();
};
#endif // CVIN_H

10
cvout.cpp

@ -145,3 +145,13 @@ void CVOut::start()
m_it_begin = it_begin;
m_ready = true;
}
void CVOut::stop()
{
if (m_mapping_list.size() == 0) return;
close();
delete [] m_ports;
delete [] m_buffers;
}

1
cvout.h

@ -19,6 +19,7 @@ private:
public:
void start();
void stop();
};
#endif // CVOUT_H
Loading…
Cancel
Save