From 89daa1dac1c1b65579832809abed4f0c75aa2aa8 Mon Sep 17 00:00:00 2001 From: Marty Kraimer Date: Thu, 19 May 2011 12:02:47 -0400 Subject: [PATCH] fix bug in monitorQueue.cpp --- configure/RELEASE | 4 +++- pvDataApp/monitor/monitorQueue.cpp | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/configure/RELEASE b/configure/RELEASE index a30496c..b5a7e80 100644 --- a/configure/RELEASE +++ b/configure/RELEASE @@ -22,7 +22,9 @@ TEMPLATE_TOP=$(EPICS_BASE)/templates/makeBaseApp/top #SNCSEQ=$(EPICS_BASE)/../modules/soft/seq # EPICS_BASE usually appears last so other apps can override stuff: -EPICS_BASE=/opt/epics/base +#EPICS_BASE=/opt/epics/base + +EPICS_BASE=/home/install/epics/base #Capfast users may need the following definitions #CAPFAST_TEMPLATES= diff --git a/pvDataApp/monitor/monitorQueue.cpp b/pvDataApp/monitor/monitorQueue.cpp index 4a498d5..43d4c02 100644 --- a/pvDataApp/monitor/monitorQueue.cpp +++ b/pvDataApp/monitor/monitorQueue.cpp @@ -95,6 +95,7 @@ MonitorQueue::MonitorQueue(PVStructureSharedPointerPtrArray structures,int numbe MonitorQueue::~MonitorQueue() { delete queue; + for(int i=0; igetUsed(); + MonitorQueueElement *queueElement = queue->getFree(); if(queueElement==0) return nullElement; return *queueElement->getObject(); }