diff options
-rw-r--r-- | HISTORY | 3 | ||||
-rw-r--r-- | tools.c | 3 | ||||
-rw-r--r-- | tools.h | 7 |
3 files changed, 9 insertions, 4 deletions
@@ -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(). @@ -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 --------------------------------------------------------- @@ -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); |