mraajava.i: The director now uses a GlobalRef instead of a WeakRef to the IsrCallback...
authorStefan Andritoiu <stefan.andritoiu@intel.com>
Tue, 8 Dec 2015 17:37:38 +0000 (19:37 +0200)
committerBrendan Le Foll <brendan.le.foll@intel.com>
Mon, 14 Dec 2015 15:33:34 +0000 (15:33 +0000)
Signed-off-by: Petre Eftime <petre.p.eftime@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
src/java/mraajava.i

index a97e90c..997b772 100644 (file)
@@ -57,6 +57,7 @@ class Spi;
 %ignore read(char* data, int length);
 
 %feature("director") IsrCallback;
+SWIG_DIRECTOR_OWNED(IsrCallback)
 %include ../mraa.i
 
 %wrapper %{