Fix "all supported formats" filter in Open dialog
Clean up ORA writing

Fix a couple of memory leaks.