summaryrefslogtreecommitdiff
path: root/src/lib/writer.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-11-09 00:51:31 +0000
committerCarl Hetherington <cth@carlh.net>2013-11-09 00:51:31 +0000
commitd33a11798fc39336eb9442f11a06a9a1f2470d83 (patch)
treeac3c8b51b36eeb729eff19b2f9a017c50cd3beb9 /src/lib/writer.h
parentc2679b662dfb8c3c654e85153ef6fb552e0a218c (diff)
Fix a few memory leaks.
Diffstat (limited to 'src/lib/writer.h')
-rw-r--r--src/lib/writer.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/writer.h b/src/lib/writer.h
index d922cfce0..17ce42572 100644
--- a/src/lib/writer.h
+++ b/src/lib/writer.h
@@ -70,7 +70,7 @@ bool operator== (QueueItem const & a, QueueItem const & b);
class Writer : public ExceptionStore, public boost::noncopyable
{
public:
- Writer (boost::shared_ptr<const Film>, boost::shared_ptr<Job>);
+ Writer (boost::shared_ptr<const Film>, boost::weak_ptr<Job>);
bool can_fake_write (int) const;
@@ -89,7 +89,7 @@ private:
/** our Film */
boost::shared_ptr<const Film> _film;
- boost::shared_ptr<Job> _job;
+ boost::weak_ptr<Job> _job;
/** the first frame index that does not already exist in our MXF */
int _first_nonexistant_frame;