Skip to content

Commit ee7dea8

Browse files
committed
Make IGFD::FileDialog's destructor virtual
1 parent 8733c1f commit ee7dea8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ImGuiFileDialog.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,7 @@ namespace IGFD
665665

666666
public:
667667
FileDialog(); // ImGuiFileDialog Constructor. can be used for have many dialog at same tiem (not possible with singleton)
668-
~FileDialog(); // ImGuiFileDialog Destructor
668+
virtual ~FileDialog(); // ImGuiFileDialog Destructor
669669

670670
// standard dialog
671671
void OpenDialog( // open simple dialog (path and fileName can be specified)
@@ -1102,4 +1102,4 @@ typedef IGFD::FileDialog ImGuiFileDialog;
11021102
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
11031103
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
11041104

1105-
#endif // IMGUIFILEDIALOG_H
1105+
#endif // IMGUIFILEDIALOG_H

0 commit comments

Comments
 (0)