refcntr transition to shared_ptr. test exec.release->reset

This commit is contained in:
Jean-Francois Dockes 2015-09-05 08:51:41 +02:00
parent 52939d5517
commit 6efbc3b841

View file

@ -1335,8 +1335,8 @@ static bool inflateToDynBuf(void* inp, UINT inlen, void **outpp, UINT *outlenp)
#include <errno.h> #include <errno.h>
#include <string.h> #include <string.h>
#include <sys/types.h> #include <sys/types.h>
#include "safesysstat.h" #include <sys/stat.h>
#include "safeunistd.h" #include <unistd.h>
#include <string> #include <string>
#include <iostream> #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 // Done with our objects here, there is no close() method, so delete them
occ.release(); occ.reset();
ncc.release(); ncc.reset();
if (rename(ofn.c_str(), backupfn.c_str()) < 0) { if (rename(ofn.c_str(), backupfn.c_str()) < 0) {
cerr << "Could not create backup " << backupfn << " : "; cerr << "Could not create backup " << backupfn << " : ";