mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-25 23:06:10 -05:00
suppressed uninitialised memory leak in LocalDirectoryStorage
This commit is contained in:
parent
b14e4d50cf
commit
dec5c5c4b4
@ -306,6 +306,12 @@ void DirectoryStorage::checkSave()
|
||||
/* Local Directory Storage */
|
||||
/******************************************************************************************************************/
|
||||
|
||||
LocalDirectoryStorage::LocalDirectoryStorage(const std::string& fname,const RsPeerId& own_id)
|
||||
: DirectoryStorage(own_id,fname)
|
||||
{
|
||||
mTSChanged = false ;
|
||||
}
|
||||
|
||||
RsFileHash LocalDirectoryStorage::makeEncryptedHash(const RsFileHash& hash)
|
||||
{
|
||||
return RsDirUtil::sha1sum(hash.toByteArray(),hash.SIZE_IN_BYTES);
|
||||
|
@ -210,7 +210,7 @@ private:
|
||||
class LocalDirectoryStorage: public DirectoryStorage
|
||||
{
|
||||
public:
|
||||
LocalDirectoryStorage(const std::string& fname,const RsPeerId& own_id) : DirectoryStorage(own_id,fname) {}
|
||||
LocalDirectoryStorage(const std::string& fname,const RsPeerId& own_id);
|
||||
virtual ~LocalDirectoryStorage() {}
|
||||
|
||||
/*!
|
||||
|
Loading…
x
Reference in New Issue
Block a user