Commit aa400c58 authored by Roy Reapor's avatar Roy Reapor

Fixed issue 2403

Created temporary files are now deleted in Win32.
parent 06a13d9b
......@@ -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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment