Remove miguiding if before delete

This commit is contained in:
Gioacchino Mazzurco 2017-07-24 10:16:24 +02:00
parent 02424240a0
commit 03cc2e629d

View File

@ -280,9 +280,10 @@ class RsNxsGrp : public RsNxsItem
public:
RsNxsGrp(uint16_t servtype) : RsNxsItem(servtype, RS_PKT_SUBTYPE_NXS_GRP_ITEM), grp(servtype), meta(servtype),
metaData(NULL) { clear();}
virtual ~RsNxsGrp() { if(metaData) delete metaData; }
RsNxsGrp(uint16_t servtype) :
RsNxsItem(servtype, RS_PKT_SUBTYPE_NXS_GRP_ITEM), grp(servtype),
meta(servtype), metaData(NULL) { clear(); }
virtual ~RsNxsGrp() { delete metaData; }
RsNxsGrp* clone() const;