platform/shared/db/DBAttrManager.cpp in rhodes-2.0.0.beta11 vs platform/shared/db/DBAttrManager.cpp in rhodes-2.0.0.rc1
- old
+ new
@@ -92,10 +92,10 @@
unsigned long CDBAttrManager::getAttrsBySrc(int nSrcID)
{
synchronized(m_mxSrcAttrs)
{
- VALUE arRes = rho_ruby_create_array();
+ CHoldRubyValue arRes(rho_ruby_create_array());
Hashtable<String,int>* pmapAttr = m_mapSrcAttrs.get(nSrcID);
if ( pmapAttr != null )
{
Hashtable<String,int>& mapAttr = *pmapAttr;