fix bug in monitorQueue.cpp
This commit is contained in:
@@ -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=
|
||||
|
||||
@@ -95,6 +95,7 @@ MonitorQueue::MonitorQueue(PVStructureSharedPointerPtrArray structures,int numbe
|
||||
MonitorQueue::~MonitorQueue()
|
||||
{
|
||||
delete queue;
|
||||
for(int i=0; i<number; i++) delete structures[i];
|
||||
delete[] structures;
|
||||
}
|
||||
|
||||
@@ -126,7 +127,7 @@ int MonitorQueue::capacity()
|
||||
|
||||
MonitorElement::shared_pointer const & MonitorQueue::getFree()
|
||||
{
|
||||
MonitorQueueElement *queueElement = queue->getUsed();
|
||||
MonitorQueueElement *queueElement = queue->getFree();
|
||||
if(queueElement==0) return nullElement;
|
||||
return *queueElement->getObject();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user