Catch by reference in FileDialog.cpp
Fix mismatching deallocs in ChangeIcon.cpp. Also fix a memset call.