Fix memory leaks associated with export dialog
Export dialog code was using shared pointers for UI elements, which (i) aren't needed and (ii) were preventing resources from getting closed properly.
Export dialog code was using shared pointers for UI elements, which (i) aren't needed and (ii) were preventing resources from getting closed properly.