From 5c0f089833ed7435fe474b096541e60c8efed433 Mon Sep 17 00:00:00 2001 From: darkeye Date: Tue, 20 Aug 2002 20:07:36 +0000 Subject: [PATCH] minor fixes --- darkice/trunk/src/Ref.h | 5 ++++- darkice/trunk/src/VorbisLibEncoder.h | 6 ++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/darkice/trunk/src/Ref.h b/darkice/trunk/src/Ref.h index 2e0968d..c02c12c 100644 --- a/darkice/trunk/src/Ref.h +++ b/darkice/trunk/src/Ref.h @@ -147,7 +147,7 @@ class Ref * @return the pointer to the object referenced. */ inline T* - operator->() const throw () + operator->() const throw ( Exception ) { if ( !object ) { throw Exception( __FILE__, __LINE__, @@ -300,6 +300,9 @@ class Ref $Source$ $Log$ + Revision 1.5 2002/08/20 20:07:36 darkeye + minor fixes + Revision 1.4 2002/02/20 11:51:27 darkeye added equality operators to compare with pointers diff --git a/darkice/trunk/src/VorbisLibEncoder.h b/darkice/trunk/src/VorbisLibEncoder.h index 2f7af3b..517783b 100644 --- a/darkice/trunk/src/VorbisLibEncoder.h +++ b/darkice/trunk/src/VorbisLibEncoder.h @@ -143,6 +143,9 @@ class VorbisLibEncoder : public AudioEncoder, public virtual Reporter inline void strip ( void ) throw ( Exception ) { + if ( converter ) { + delete converter; + } } /** @@ -441,6 +444,9 @@ class VorbisLibEncoder : public AudioEncoder, public virtual Reporter $Source$ $Log$ + Revision 1.8 2002/08/20 20:07:36 darkeye + minor fixes + Revision 1.7 2002/08/20 19:35:37 darkeye added possibility to specify maximum bitrate for Ogg Vorbis streams