mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 17:31:20 +02:00
gui/channellist.cpp: bug fix, default copy constructor is danger, if class have pointers
This commit is contained in:
@@ -119,7 +119,6 @@ CChannelList::CChannelList(const char * const pName, bool phistoryMode, bool _vl
|
||||
|
||||
CChannelList::~CChannelList()
|
||||
{
|
||||
chanlist->clear();
|
||||
if(dline){
|
||||
delete dline;
|
||||
dline = NULL;
|
||||
|
@@ -236,6 +236,7 @@ public:
|
||||
SORT_MAX
|
||||
};
|
||||
unsigned Size() { return (*chanlist).size(); }
|
||||
ZapitChannelList &getChannels() { return channels; };
|
||||
|
||||
};
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user