Commits

Anonymous committed 2159f7d

Fix leaked file and registry descriptors

  • Participants
  • Parent commits 258ee6e
  • Tags ParaView-RenderModuleMove, ParaView-RenderModuleMove-pre

Comments (0)

Files changed (1)

File GCC_XML/KWSys/SystemTools.cxx

       if (dwType == REG_SZ)
         {
         value = data;
+        RegCloseKey(hKey);
         return true;
         }
       }
     if(RegDeleteValue(hKey, 
                       (LPTSTR)valuename.c_str()) == ERROR_SUCCESS)
       {
+      RegCloseKey(hKey);
       return true;
       }
     }