Browse Source

solving memory leak

Patrik Kovacs 6 years ago
parent
commit
ca2938def0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/HdfItem.cpp

+ 1 - 1
lib/HdfItem.cpp

@@ -96,7 +96,7 @@ hdf4cpp::HdfDataItem::HdfDataItem(int32 id) : HdfItemBase(id) {
 }
 hdf4cpp::HdfDataItem::~HdfDataItem() {
     if(isValid()) {
-        Vdetach(id);
+        VSdetach(id);
     }
 }
 hdf4cpp::HdfAttribute hdf4cpp::HdfDataItem::getAttribute(const std::string &name) {