From d33a11798fc39336eb9442f11a06a9a1f2470d83 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 9 Nov 2013 00:51:31 +0000 Subject: Fix a few memory leaks. --- src/lib/encoder.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/encoder.h') diff --git a/src/lib/encoder.h b/src/lib/encoder.h index 9875a179b..686aaa2f2 100644 --- a/src/lib/encoder.h +++ b/src/lib/encoder.h @@ -58,7 +58,7 @@ class ServerFinder; class Encoder : public boost::noncopyable { public: - Encoder (boost::shared_ptr f, boost::shared_ptr); + Encoder (boost::shared_ptr f, boost::weak_ptr); virtual ~Encoder (); /** Called to indicate that a processing run is about to begin */ @@ -90,7 +90,7 @@ private: /** Film that we are encoding */ boost::shared_ptr _film; - boost::shared_ptr _job; + boost::weak_ptr _job; /** Mutex for _time_history and _last_frame */ mutable boost::mutex _state_mutex; -- cgit v1.2.3