This commit is contained in:
Chris Lu
2018-11-23 00:26:15 -08:00
parent 444dfded84
commit 86dd933596
12 changed files with 28 additions and 27 deletions

View File

@@ -42,7 +42,7 @@ func (v *Volume) Destroy() (err error) {
}
v.Close()
os.Remove(v.FileName() + ".dat")
if v.nm!=nil{
if v.nm != nil {
err = v.nm.Destroy()
}
os.Remove(v.FileName() + ".cpd")