another memory leak fixed

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@392929 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Davies 2006-04-10 12:19:24 +00:00
parent 8cb2141080
commit a1e410f761
1 changed files with 2 additions and 0 deletions

View File

@ -174,6 +174,8 @@ public class AdvisoryBroker extends BrokerFilter {
next.removeDestinationInfo(context, info);
ActiveMQTopic topic = AdvisorySupport.getDestinationAdvisoryTopic(info.getDestination());
fireAdvisory(context, topic, info);
next.removeDestination(context, AdvisorySupport.getConsumerAdvisoryTopic(info.getDestination()), 0);
next.removeDestination(context, AdvisorySupport.getProducerAdvisoryTopic(info.getDestination()), 0);
}
public void removeConnection(ConnectionContext context, ConnectionInfo info, Throwable error) throws Exception {