summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
Diffstat (limited to 'base')
-rw-r--r--base/scoped_handle_win.h6
1 files changed, 6 insertions, 0 deletions
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_;