Use a scoped_ptr to avoid FileFilter leaks.
[cumulus.git] / store.h
diff --git a/store.h b/store.h
index 122a4ac..ab5f8e9 100644 (file)
--- a/store.h
+++ b/store.h
@@ -33,6 +33,7 @@
 #include <iostream>
 #include <sstream>
 
+#include "cumulus.h"
 #include "localdb.h"
 #include "remote.h"
 #include "ref.h"
@@ -122,7 +123,7 @@ private:
     std::string segment_name;
 
     RemoteFile *file;
-    FileFilter *filter;
+    scoped_ptr<FileFilter> filter;
 
     // Write data to the tar file
     void tar_write(const char *data, size_t size);