Qt: Fix leak on CaptureFileDialog preview of file with errorsmaster
commitc29c1bb27ce6a4ab50866ea3b580af859d44323b
authorJohn Thacker <johnthacker@gmail.com>
Sat, 1 Jun 2024 11:45:10 +0000 (1 07:45 -0400)
committerJohn Thacker <johnthacker@gmail.com>
Sat, 1 Jun 2024 11:47:05 +0000 (1 07:47 -0400)
tree07603c99dc02433282548d6403d909fd4a8a0ada
parentcc8264d68f638c72ada1e94a9913902462c1a25a
Qt: Fix leak on CaptureFileDialog preview of file with errors

Remember to call wtap_close when the preview stats have an error
to avoid leaking the file.
ui/qt/capture_file_dialog.cpp