refcntr transition to shared_ptr. test exec.release->reset
This commit is contained in:
parent
52939d5517
commit
6efbc3b841
1 changed files with 4 additions and 4 deletions
|
@ -1335,8 +1335,8 @@ static bool inflateToDynBuf(void* inp, UINT inlen, void **outpp, UINT *outlenp)
|
|||
#include <errno.h>
|
||||
#include <string.h>
|
||||
#include <sys/types.h>
|
||||
#include "safesysstat.h"
|
||||
#include "safeunistd.h"
|
||||
#include <sys/stat.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include <string>
|
||||
#include <iostream>
|
||||
|
@ -1420,8 +1420,8 @@ bool resizecc(const string& dir, int newmbs)
|
|||
}
|
||||
|
||||
// Done with our objects here, there is no close() method, so delete them
|
||||
occ.release();
|
||||
ncc.release();
|
||||
occ.reset();
|
||||
ncc.reset();
|
||||
|
||||
if (rename(ofn.c_str(), backupfn.c_str()) < 0) {
|
||||
cerr << "Could not create backup " << backupfn << " : ";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue