Fix use-after-free in unittest setup code.

When setting the root prefix in a unittest, we need to reset it after
so it isn't accidentally used by other tests.

Bug: chromium:547127
Test: USE="clang asan" FEATURES=test emerge-link update_engine

Change-Id: Ib84bbf265a380976407100a4fba4d2600d62dde6
diff --git a/omaha_request_params.cc b/omaha_request_params.cc
index 9759935..f6fad1c 100644
--- a/omaha_request_params.cc
+++ b/omaha_request_params.cc
@@ -53,6 +53,11 @@
     "stable-channel",
 };
 
+OmahaRequestParams::~OmahaRequestParams() {
+  if (!root_.empty())
+    test::SetImagePropertiesRootPrefix(nullptr);
+}
+
 bool OmahaRequestParams::Init(const string& in_app_version,
                               const string& in_update_url,
                               bool in_interactive) {