Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGonzalo Paniagua Javier <gonzalo.mono@gmail.com>2005-04-21 04:47:25 +0400
committerGonzalo Paniagua Javier <gonzalo.mono@gmail.com>2005-04-21 04:47:25 +0400
commit1d9c9e24412ad74e543db7924a54e1cbfc7e2ace (patch)
tree3560369d15e564960545967031ad61a8d2bb2282 /mcs/class/System/System.IO/FAMWatcher.cs
parent6bb6eadecb77f2e749433b5cf70f7c5b6933883e (diff)
Fix warnings
svn path=/trunk/mcs/; revision=43368
Diffstat (limited to 'mcs/class/System/System.IO/FAMWatcher.cs')
-rw-r--r--mcs/class/System/System.IO/FAMWatcher.cs7
1 files changed, 6 insertions, 1 deletions
diff --git a/mcs/class/System/System.IO/FAMWatcher.cs b/mcs/class/System/System.IO/FAMWatcher.cs
index 3c3f14021df..c6d1a61aad8 100644
--- a/mcs/class/System/System.IO/FAMWatcher.cs
+++ b/mcs/class/System/System.IO/FAMWatcher.cs
@@ -39,7 +39,7 @@ using System.Threading;
namespace System.IO {
struct FAMConnection {
public int FD;
- IntPtr opaque;
+ public IntPtr opaque;
}
struct FAMRequest {
@@ -320,6 +320,11 @@ namespace System.IO {
}
}
+ ~FAMWatcher ()
+ {
+ FAMClose (ref conn);
+ }
+
[DllImport ("libfam.so.0")]
extern static int FAMOpen (out FAMConnection fc);