userlibandfileserver/fileserver/sfsrv/cl_drive.cpp
changeset 279 957c583b417b
parent 271 dc268b18d709
--- a/userlibandfileserver/fileserver/sfsrv/cl_drive.cpp	Tue Sep 28 15:28:31 2010 +0100
+++ b/userlibandfileserver/fileserver/sfsrv/cl_drive.cpp	Mon Oct 04 12:03:52 2010 +0100
@@ -409,7 +409,15 @@
 }
 
 
-
+//-------------------------------------------------------------------
+/** 
+    Closes the object, deletes the implementation
+*/
+void CFsMountHelper::Close()
+{
+    delete ipImpl;
+    ipImpl = NULL;
+}
 
 //-------------------------------------------------------------------
 /**
@@ -439,15 +447,6 @@
     return pSelf;
 }
 
-//-------------------------------------------------------------------
-/** 
-    Closes the object, deletes the implementation
-*/
-EXPORT_C void CFsMountHelper::Close()
-{
-    delete ipImpl;
-    ipImpl = NULL;
-}
 
 
 //-------------------------------------------------------------------
@@ -511,6 +510,10 @@
 
 
 
+EXPORT_C CFsMountHelper::~CFsMountHelper() 
+    {
+    Close();
+    }