summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2008-01-01 15:10:07 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2008-01-01 15:10:07 +0100
commit49f7a7f57470e5b941073a0cccf50425279600d1 (patch)
tree697f24d4c0c23107e72bc95a8106e57fd81c6c76
parent6f76e100383189eb9fd2b861fe2cdba2d94b7c59 (diff)
downloadvdr-49f7a7f57470e5b941073a0cccf50425279600d1.tar.gz
vdr-49f7a7f57470e5b941073a0cccf50425279600d1.tar.bz2
Fixed cVector::Clear() and cStringList::Clear()
-rw-r--r--HISTORY3
-rw-r--r--tools.c3
-rw-r--r--tools.h7
3 files changed, 9 insertions, 4 deletions
diff --git a/HISTORY b/HISTORY
index 504dabb3..0969a5af 100644
--- a/HISTORY
+++ b/HISTORY
@@ -5529,7 +5529,7 @@ Video Disk Recorder Revision History
- Fixed stopping live subtitles when a player is attached to the device.
- Fixed suddenly stopping subtitles in live mode.
-2007-12-27: Version 1.5.13
+2008-01-13: Version 1.5.13
- Fixed the declaration of cSubtitleObject::Decode8BppCodeString() (thanks to
Gregoire Favre).
@@ -5539,3 +5539,4 @@ Video Disk Recorder Revision History
in a context sensitive manner (suggested by Andreas Brugger). If there is
no menu open it will show the info of the current broadcast or replay.
- cTimeMs now uses the monotonic clock, if available (thanks to Petri Hintukainen).
+- Fixed cVector::Clear() and cStringList::Clear().
diff --git a/tools.c b/tools.c
index 2f8e0789..79b7c347 100644
--- a/tools.c
+++ b/tools.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: tools.c 1.138 2007/12/27 15:57:49 kls Exp $
+ * $Id: tools.c 1.139 2008/01/01 15:10:07 kls Exp $
*/
#include "tools.h"
@@ -1209,6 +1209,7 @@ void cStringList::Clear(void)
{
for (int i = 0; i < Size(); i++)
free(At(i));
+ cVector<char *>::Clear();
}
// --- cFileNameList ---------------------------------------------------------
diff --git a/tools.h b/tools.h
index 28dbd5ea..1239176d 100644
--- a/tools.h
+++ b/tools.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: tools.h 1.108 2007/08/25 14:16:39 kls Exp $
+ * $Id: tools.h 1.109 2008/01/01 15:09:25 kls Exp $
*/
#ifndef __TOOLS_H
@@ -470,7 +470,10 @@ public:
memmove(&data[Index], &data[Index + 1], (size - Index) * sizeof(T));
size--;
}
- virtual void Clear(void) {}
+ virtual void Clear(void)
+ {
+ size = 0;
+ }
void Sort(__compar_fn_t Compare)
{
qsort(data, size, sizeof(T), Compare);