geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbarr...@apache.org
Subject [geode-native] 01/03: GEODE-3674: Fix bug in usage of shared pointer
Date Fri, 22 Sep 2017 21:09:58 GMT
This is an automated email from the ASF dual-hosted git repository.

jbarrett pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/geode-native.git

commit cf16d3071cb92bce3e87238146927316a67db1fd
Author: David Kimura <dkimura@pivotal.io>
AuthorDate: Wed Sep 20 13:25:40 2017 -0700

    GEODE-3674: Fix bug in usage of shared pointer
---
 cppcache/src/ProxyCache.cpp | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/cppcache/src/ProxyCache.cpp b/cppcache/src/ProxyCache.cpp
index 2d03a8b..d304609 100644
--- a/cppcache/src/ProxyCache.cpp
+++ b/cppcache/src/ProxyCache.cpp
@@ -63,8 +63,7 @@ void ProxyCache::close() {
       prqs->closeCqs(false);
     }
 
-    ProxyCachePtr pcp(this);
-    GuardUserAttribures gua(pcp);
+    GuardUserAttribures gua(shared_from_this());
     m_isProxyCacheClosed = true;
     m_userAttributes->unSetCredentials();
     // send message to server

-- 
To stop receiving notification emails like this one, please contact
"commits@geode.apache.org" <commits@geode.apache.org>.

Mime
View raw message