Return-Path: X-Original-To: apmail-activemq-commits-archive@www.apache.org Delivered-To: apmail-activemq-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 33B2A91CB for ; Tue, 8 May 2012 20:22:20 +0000 (UTC) Received: (qmail 67964 invoked by uid 500); 8 May 2012 20:22:20 -0000 Delivered-To: apmail-activemq-commits-archive@activemq.apache.org Received: (qmail 67931 invoked by uid 500); 8 May 2012 20:22:20 -0000 Mailing-List: contact commits-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list commits@activemq.apache.org Received: (qmail 67923 invoked by uid 99); 8 May 2012 20:22:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 May 2012 20:22:20 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 May 2012 20:22:19 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 148252388962 for ; Tue, 8 May 2012 20:21:59 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1335743 - /activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/core/ActiveMQConnection.cpp Date: Tue, 08 May 2012 20:21:59 -0000 To: commits@activemq.apache.org From: tabish@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120508202159.148252388962@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: tabish Date: Tue May 8 20:21:58 2012 New Revision: 1335743 URL: http://svn.apache.org/viewvc?rev=1335743&view=rev Log: Fix a leak in deleteTempDestination() Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/core/ActiveMQConnection.cpp Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/core/ActiveMQConnection.cpp URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/core/ActiveMQConnection.cpp?rev=1335743&r1=1335742&r2=1335743&view=diff ============================================================================== --- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/core/ActiveMQConnection.cpp (original) +++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/core/ActiveMQConnection.cpp Tue May 8 20:21:58 2012 @@ -1435,7 +1435,7 @@ void ActiveMQConnection::deleteTempDesti while (iterator->hasNext()) { Pointer session = iterator->next(); if (session->isInUse(destination)) { - throw new ActiveMQException(__FILE__, __LINE__, "A consumer is consuming from the temporary destination"); + throw ActiveMQException(__FILE__, __LINE__, "A consumer is consuming from the temporary destination"); } }