summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--webkit/glue/glue_accessibility.cc2
-rw-r--r--webkit/glue/glue_accessibility.h4
2 files changed, 4 insertions, 2 deletions
diff --git a/webkit/glue/glue_accessibility.cc b/webkit/glue/glue_accessibility.cc
index 7119358..ee3a3e1 100644
--- a/webkit/glue/glue_accessibility.cc
+++ b/webkit/glue/glue_accessibility.cc
@@ -263,7 +263,7 @@ bool GlueAccessibility::ClearIAccessibleMap(int iaccessible_id,
if (it->second) {
// Erase element from reverse hashmap.
IAccessibleToIntMap::iterator it2 =
- iaccessible_to_int_map_.find(it->second);
+ iaccessible_to_int_map_.find(it->second.get());
DCHECK(it2 != iaccessible_to_int_map_.end());
iaccessible_to_int_map_.erase(it2);
diff --git a/webkit/glue/glue_accessibility.h b/webkit/glue/glue_accessibility.h
index 918e71e..e7343b6 100644
--- a/webkit/glue/glue_accessibility.h
+++ b/webkit/glue/glue_accessibility.h
@@ -12,7 +12,9 @@
class WebView;
-typedef stdext::hash_map<int, IAccessible*> IntToIAccessibleMap;
+template <typename T> class COMPtr;
+
+typedef stdext::hash_map<int, COMPtr<IAccessible> > IntToIAccessibleMap;
typedef stdext::hash_map<IAccessible*, int> IAccessibleToIntMap;
////////////////////////////////////////////////////////////////////////////////