[vlc-commits] mkv: removing virtual destructors for classes that are never inherited.

Hugo Beauzée-Luyssen git at videolan.org
Tue Oct 18 12:26:55 CEST 2011


vlc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Mon Oct 17 19:57:05 2011 +0200| [b9eb3a2d1b36bd026d4b1290bd201a8296aeca47] | committer: Jean-Baptiste Kempf

mkv: removing virtual destructors for classes that are never inherited.

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b9eb3a2d1b36bd026d4b1290bd201a8296aeca47
---

 modules/demux/mkv/mkv.hpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/demux/mkv/mkv.hpp b/modules/demux/mkv/mkv.hpp
index e1027a7..228ef8c 100644
--- a/modules/demux/mkv/mkv.hpp
+++ b/modules/demux/mkv/mkv.hpp
@@ -134,7 +134,7 @@ public:
     {
         p_data = NULL;
     }
-    virtual ~attachment_c() { free( p_data ); }
+    ~attachment_c() { free( p_data ); }
 
     /* Allocs the data space. Returns true if allocation went ok */
     bool init()
@@ -159,7 +159,7 @@ class matroska_stream_c
 {
 public:
     matroska_stream_c() :p_io_callback(NULL) ,p_estream(NULL) {}
-    virtual ~matroska_stream_c()
+    ~matroska_stream_c()
     {
         delete p_io_callback;
         delete p_estream;



More information about the vlc-commits mailing list