diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2009-10-25 04:25:56 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2009-10-25 04:25:56 +0000 |
commit | 6b4fed1d98628b32a92b39e3af7159b3e6ae403f (patch) | |
tree | 38e7e336dee140797fe7d7b459193c7ed4297b42 /multitouch.c | |
parent | 029f0be8e4beea787feb984b2797f6e23f7964ac (diff) |
added Unregister for sake of being proper
svn path=/trunk/externals/apple/; revision=12670
Diffstat (limited to 'multitouch.c')
-rw-r--r-- | multitouch.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/multitouch.c b/multitouch.c index 3118d8c..0b9b0a7 100644 --- a/multitouch.c +++ b/multitouch.c @@ -27,9 +27,9 @@ #include <mach/mach.h> #include <IOKit/IOKitLib.h> +#include <CoreFoundation/CoreFoundation.h> #include <math.h> #include <unistd.h> -#include <CoreFoundation/CoreFoundation.h> #include "MultitouchSupport.h" #include <m_pd.h> @@ -109,6 +109,7 @@ static void multitouch_float(t_multitouch* x, t_float f) /* if I am the last instance, clean up the callback stuff */ if (polling == 0) { MTDeviceStop(dev); + MTUnregisterContactFrameCallback(dev, callback); MTDeviceRelease(dev); dev = NULL; } |