Skip to content

Commit

Permalink
Make UList destructor virtual to avoid undefined behaviour on which d…
Browse files Browse the repository at this point in the history
…estructor should be called
  • Loading branch information
zeehio committed May 18, 2014
1 parent 9e2e4eb commit f8277f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/EST_UList.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class EST_UList {

public:
EST_UList() { init(); };
~ EST_UList() { clear_and_free(NULL); }
virtual ~ EST_UList() { clear_and_free(NULL); }

EST_UItem *nth_pointer(int n) const;

Expand Down

0 comments on commit f8277f9

Please sign in to comment.