summaryrefslogtreecommitdiff
blob: d80f90f94bc68d6966c6a99ecc7e9de8ba85a43a (plain)
1
2
3
4
5
6
7
8
9
10
--- Src/libnumarray.ch	2006-08-24 19:38:15.000000000 +0100
+++ Src/libnumarray.ch.new	2007-02-08 16:10:49.000000000 +0000
@@ -877,6 +877,7 @@
 		if (!buf) return NULL;
 	} else {
 		buf = Py_None;
+		Py_INCREF(buf);
 	}
 	
 	a = NA_NewAllFromBuffer( nd, dimensions, descr->type_num, buf,