From 0e3dfbe3810393c0ada3cfd207b46bea4f1169f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Mangano?= Date: Tue, 1 Mar 2016 16:03:11 +0100 Subject: [PATCH] forbid copy of ogg::Stream and ogg::Decoder MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit realize they cause serious memory issues now adding a Stream to the vector doesn't typecheck… --- src/ogg.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ogg.h b/src/ogg.h index caf56f8..f8c3f27 100644 --- a/src/ogg.h +++ b/src/ogg.h @@ -30,6 +30,7 @@ namespace ogg struct Stream { Stream(int streamno); + Stream(const Stream&) = delete; ~Stream(); // Called by Decoder once a page was read. @@ -71,6 +72,7 @@ namespace ogg struct Decoder { Decoder(std::istream&); + Decoder(const Decoder&) = delete; ~Decoder(); // Read a page, dispatch it, and return the stream it belongs to.