prevented crash on deleting non-constructed analyse object
This commit is contained in:
parent
31d43a5e12
commit
e674c6476b
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user