Better tests for ticket #759

This commit is contained in:
James Bowman
2011-01-19 00:25:24 +00:00
parent d2d52c7310
commit 5d0d485fd9
3 changed files with 20 additions and 4 deletions

10
tests/python/leak2.py Normal file
View File

@@ -0,0 +1,10 @@
import cv
import numpy as np
import time
while True:
for i in range(4000):
a = cv.CreateImage((1024,1024), cv.IPL_DEPTH_8U, 1)
b = cv.CreateMat(1024, 1024, cv.CV_8UC1)
# c = cv.CreateMatND([1024,1024], cv.CV_8UC1)
print "pause..."