From 38364fd79c17db99541a7ed5fab9e8c253e76949 Mon Sep 17 00:00:00 2001 From: "sanjeevr@chromium.org" Date: Thu, 18 Mar 2010 17:11:00 +0000 Subject: Added release() method to ScopedHGlobal. BUG=None TEST=None Review URL: http://codereview.chromium.org/1063003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41960 0039d316-1c4b-4281-b951-d872f2087c98 --- base/scoped_handle_win.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'base') diff --git a/base/scoped_handle_win.h b/base/scoped_handle_win.h index ea37ba2..bc62d8e 100644 --- a/base/scoped_handle_win.h +++ b/base/scoped_handle_win.h @@ -220,6 +220,12 @@ class ScopedHGlobal { return data_; } + T* release() { + T* data = data_; + data_ = NULL; + return data; + } + private: HGLOBAL glob_; -- cgit v1.1