Skip to content

Commit 9466973

Browse files
committed
Ensure that temporary binary files are deleted when the app exits
1 parent 8d1c65a commit 9466973

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/main/scala/util/VideoDeviceUtils.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ object VideoDeviceUtils {
2626

2727
System.load(tempPath.toString)
2828

29+
tempPath.toFile.deleteOnExit()
30+
2931
def getDeviceNames: Array[String] = {
3032
new VideoDeviceUtils().getDeviceNames
3133
}

0 commit comments

Comments
 (0)