Commit e674c647 authored by unknown's avatar unknown

prevented crash on deleting non-constructed analyse object

parent 31d43a5e
...@@ -288,13 +288,14 @@ protected: ...@@ -288,13 +288,14 @@ protected:
public: public:
uint max_tree_elements, max_treemem; uint max_tree_elements, max_treemem;
analyse(select_result *res) :Procedure(res, PROC_NO_SORT), rows(0), analyse(select_result *res) :Procedure(res, PROC_NO_SORT), f_info(0),
output_str_length(0) {} rows(0), output_str_length(0) {}
~analyse() ~analyse()
{ {
for (field_info **f=f_info; f != f_end; f++) if (f_info)
delete (*f); for (field_info **f=f_info; f != f_end; f++)
delete (*f);
} }
virtual void add() {} virtual void add() {}
virtual bool change_columns(List<Item> &fields); virtual bool change_columns(List<Item> &fields);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment