From 17bf419804d4cc8e00c25796af946c4efb94eb03 Mon Sep 17 00:00:00 2001 From: darkeye Date: Tue, 9 Apr 2002 13:10:43 +0000 Subject: [PATCH] resolved memory leak issue introduced in 0.9 --- darkice/trunk/AUTHORS | 2 ++ darkice/trunk/ChangeLog | 6 ++++++ darkice/trunk/configure.in | 2 +- darkice/trunk/rpm/darkice.spec | 5 ++++- darkice/trunk/src/CastSink.cpp | 6 ++++-- 5 files changed, 17 insertions(+), 4 deletions(-) diff --git a/darkice/trunk/AUTHORS b/darkice/trunk/AUTHORS index 02a6ce5..a2b89b9 100644 --- a/darkice/trunk/AUTHORS +++ b/darkice/trunk/AUTHORS @@ -11,4 +11,6 @@ with contributions by: Michael Smith, Julius O. Smith, the OSALP team, http://osalp.sourceforge.net + Kristjan G. Bjarnason + Nicu Pavel diff --git a/darkice/trunk/ChangeLog b/darkice/trunk/ChangeLog index 90d0505..5a19d59 100644 --- a/darkice/trunk/ChangeLog +++ b/darkice/trunk/ChangeLog @@ -1,3 +1,9 @@ +09-04-2001: DarkIce 0.9.1 released + + o bugfix: a memory leak was introduced in 0.9, which is fixed thanks to + Kristjan G. Bjarnason and Nicu Pavel + o minor documentation fix + 28-03-2002: DarkIce 0.9 released o added possibility to simply read from the soundcard, encode, and diff --git a/darkice/trunk/configure.in b/darkice/trunk/configure.in index b1a950d..8bf2197 100644 --- a/darkice/trunk/configure.in +++ b/darkice/trunk/configure.in @@ -1,6 +1,6 @@ dnl Process this file with autoconf to produce a configure script. AC_INIT(src/DarkIce.cpp) -AM_INIT_AUTOMAKE(darkice, 0.9) +AM_INIT_AUTOMAKE(darkice, 0.9.1) AM_CONFIG_HEADER(config.h) diff --git a/darkice/trunk/rpm/darkice.spec b/darkice/trunk/rpm/darkice.spec index a3daa80..122e652 100644 --- a/darkice/trunk/rpm/darkice.spec +++ b/darkice/trunk/rpm/darkice.spec @@ -36,7 +36,7 @@ Summary : DarkIce live IceCast / ShoutCast streamer Name: darkice Vendor: Tyrell Hungary Packager: Akos Maroy -Version: 0.9 +Version: 0.9.1 Release: 1 Copyright: GPL Group: Applications/Multimedia @@ -97,6 +97,9 @@ make clean # =================================================================== change log # # $Log$ +# Revision 1.13 2002/04/09 13:10:43 darkeye +# resolved memory leak issue introduced in 0.9 +# # Revision 1.12 2002/03/28 17:11:18 darkeye # added file AUTHORS to set of distributed files # diff --git a/darkice/trunk/src/CastSink.cpp b/darkice/trunk/src/CastSink.cpp index 3759a53..dc3368e 100644 --- a/darkice/trunk/src/CastSink.cpp +++ b/darkice/trunk/src/CastSink.cpp @@ -78,8 +78,7 @@ CastSink :: init ( TcpSocket * socket, int bufferSize = bitRate ? (bitRate * 1024 / 8) * bufferDuration : (128 * 1024 / 8) * bufferDuration; - bufferedSink = socket ? new BufferedSink( socket, - (bufferSize * 1024 / 8) * bufferDuration) + bufferedSink = socket ? new BufferedSink( socket, bufferSize) : 0; } @@ -146,6 +145,9 @@ CastSink :: open ( void ) throw ( Exception ) $Source$ $Log$ + Revision 1.9 2002/04/09 13:10:43 darkeye + resolved memory leak issue introduced in 0.9 + Revision 1.8 2002/03/28 16:40:55 darkeye slight changes to allow for variable bitrate streams (where the value of bitrate is 0)