clear proxy reference after returning to caller so the proxy can be garbage collected

git-svn-id: https://svn.apache.org/repos/asf/geronimo/components/txmanager/trunk@585309 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/geronimo-connector/src/main/java/org/apache/geronimo/connector/outbound/AbstractConnectionManager.java b/geronimo-connector/src/main/java/org/apache/geronimo/connector/outbound/AbstractConnectionManager.java
index a1b7306..57f6f43 100644
--- a/geronimo-connector/src/main/java/org/apache/geronimo/connector/outbound/AbstractConnectionManager.java
+++ b/geronimo-connector/src/main/java/org/apache/geronimo/connector/outbound/AbstractConnectionManager.java
@@ -88,6 +88,10 @@
         Object connection = ci.getConnectionProxy();
         if (connection == null) {
             connection = ci.getConnectionHandle();
+        } else {
+            // connection proxy is used only once so we can be notified
+            // by the garbage collector when a connection is abandoned 
+            ci.setConnectionProxy(null);
         }
         return connection;
     }