Permalink
Browse files

Fixed device destructor

  • Loading branch information...
navzam committed Mar 20, 2013
1 parent 709dfa7 commit d82db09475482afe33b09b383c7225c78dfa2d62
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/camera.cpp
View
@@ -299,8 +299,9 @@ Camera::Device::Device(InputProvider *const inputProvider)
Camera::Device::~Device()
{
- ChannelPtrVector::iterator it = m_channels.begin();
+ ChannelPtrVector::const_iterator it = m_channels.begin();
for(; it != m_channels.end(); ++it) delete *it;
+ delete m_inputProvider;
}
bool Camera::Device::open(const int number)
@@ -401,4 +402,4 @@ void Camera::Device::updateConfig()
m_config.endGroup();
}
m_config.endGroup();
-}
+}

0 comments on commit d82db09

Please sign in to comment.