platform/shared/common/RhodesApp.cpp in rhodes-2.0.0.beta7 vs platform/shared/common/RhodesApp.cpp in rhodes-2.0.0.beta8

- old
+ new

@@ -90,10 +90,11 @@ RhoRubyStart(); rho_db_init_attr_manager(); LOG(INFO) + "Starting sync engine..."; rho_sync_create(); + LOG(INFO) + "RhoRubyInitApp..."; RhoRubyInitApp(); LOG(INFO) + "activate app"; rho_ruby_activateApp(); @@ -128,11 +129,11 @@ m_bExit = true; m_httpServer->stop(); stop(2000); } - rho_asynchttp_destroy(); + net::CAsyncHttp::Destroy(); } class CRhoCallbackCall : public common::CRhoThread { common::CAutoPtr<common::IRhoClassFactory> m_ptrFactory; @@ -575,10 +576,14 @@ m_arCallbackObjects.setElementAt(0,nIndex); if ( !pCallbackObject ) return rho_ruby_get_NIL(); - return pCallbackObject->getObjectValue(); + unsigned long valRes = pCallbackObject->getObjectValue(); + + delete pCallbackObject; + + return valRes; } void CRhodesApp::setPushNotification(String strUrl, String strParams ) { synchronized(m_mxPushCallback)