mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2025-11-15 07:38:12 +00:00
tests: Ensure objects are free'ed at the end of tests
The objects may not be garbage collected otherwise.
This commit is contained in:
@@ -17,6 +17,7 @@ c.enumerate()
|
||||
devices = c.get_devices()
|
||||
|
||||
d = devices[0]
|
||||
del devices
|
||||
|
||||
d.open_sync()
|
||||
|
||||
@@ -24,6 +25,9 @@ img = d.capture_sync(True)
|
||||
|
||||
d.close_sync()
|
||||
|
||||
del d
|
||||
del c
|
||||
|
||||
width = img.get_width()
|
||||
height = img.get_height()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user