2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-22 05:22:45 +00:00

Fix refcounting bug

[SVN r14135]
This commit is contained in:
Dave Abrahams
2002-06-12 21:57:35 +00:00
parent 52ba3c7f80
commit 0d58869d6e

View File

@@ -250,8 +250,7 @@ const ref& dictionary_proxy::operator=(const ref& rhs)
dictionary_proxy::operator ref() const
{
return ref(m_dict->ob_type->tp_as_mapping->mp_subscript(m_dict.get(), m_key.get()),
ref::increment_count);
return ref(m_dict->ob_type->tp_as_mapping->mp_subscript(m_dict.get(), m_key.get()));
}
dictionary_proxy::dictionary_proxy(const ref& dict, const ref& key)