mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 06:06:10 -04:00
fixed some leaking memory issues in loadList() methods, and also increased consistency by not returning non empty list with deleted items inside
This commit is contained in:
parent
48750cdb51
commit
8a41554754
22 changed files with 208 additions and 164 deletions
|
@ -20,8 +20,8 @@ class RsCacheService: public CacheSource, public CacheStore, public p3Config
|
|||
// Functions from p3config
|
||||
//
|
||||
virtual RsSerialiser *setupSerialiser() { return NULL ; }
|
||||
virtual bool saveList(bool&, std::list<RsItem*>&) { return false ;}
|
||||
virtual bool loadList(std::list<RsItem*>&) { return false ;}
|
||||
virtual bool saveList(bool&, std::list<RsItem*>&) =0;
|
||||
virtual bool loadList(std::list<RsItem*>&) =0;
|
||||
|
||||
private:
|
||||
uint32_t _tick_delay_in_seconds ;
|
||||
|
|
|
@ -17,8 +17,8 @@ class RsPQIService: public p3Service, public p3Config
|
|||
// Functions from p3config
|
||||
//
|
||||
virtual RsSerialiser *setupSerialiser() { return NULL ; }
|
||||
virtual bool saveList(bool&, std::list<RsItem*>&) { return false ;}
|
||||
virtual bool loadList(std::list<RsItem*>&) { return false ;}
|
||||
virtual bool saveList(bool&, std::list<RsItem*>&) =0 ;
|
||||
virtual bool loadList(std::list<RsItem*>&) =0 ;
|
||||
|
||||
private:
|
||||
uint32_t _tick_delay_in_seconds ;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue