Skip to content

Commit a8e552b

Browse files
authored
Merge pull request #48 from Jacajack/Lib_Only
Make IGFD::FileDialog's destructor virtual
2 parents 8733c1f + ee7dea8 commit a8e552b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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)