Fixed issue 2403
Created temporary files are now deleted in Win32.
This commit is contained in:
parent
06a13d9ba0
commit
aa400c5837
@ -487,6 +487,8 @@ string tempfile( const char* suffix )
|
||||
if(0 == ::GetTempFileNameA(temp_dir, "ocv", 0, temp_file))
|
||||
return string();
|
||||
|
||||
DeleteFileA(temp_file);
|
||||
|
||||
string name = temp_file;
|
||||
if(suffix)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user