Fix mem leak in DirectoryBackingStore unit tests

This is a follow-up to r150465.

TBR=tim@chromium.org
BUG=109668,129825

Review URL: https://chromiumcodereview.appspot.com/10827212

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@150490 0039d316-1c4b-4281-b951-d872f2087c98
parent 0e5c161c
......@@ -5,6 +5,7 @@
#include "sync/syncable/on_disk_directory_backing_store.h"
#include "base/logging.h"
#include "base/stl_util.h"
#include "base/metrics/histogram.h"
#include "sync/syncable/syncable-inl.h"
......@@ -72,7 +73,7 @@ DirOpenResult OnDiskDirectoryBackingStore::Load(
// The fallback: delete the current database and return a fresh one. We can
// fetch the user's data from the could.
entry_bucket->clear();
STLDeleteElements(entry_bucket);
db_.reset(new sql::Connection);
file_util::Delete(backing_filepath_, false);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment