Commit cdb02c16 authored by jpekka's avatar jpekka

Added != NULL check.

parent ce20b30a
......@@ -4,6 +4,7 @@
the enumeration of the solver's status type.
(cb_dialog_solve_clicked): Fixed a crash when the specified target
cell was empty.
(cb_dialog_solve_clicked): Added != NULL check before free.
2002-03-14 Andreas J. Guelzow <aguelzow@taliesin.ca>
......
......@@ -848,7 +848,8 @@ cb_dialog_solve_clicked (GtkWidget *button, SolverState *state)
GTK_MESSAGE_WARNING, errmsg);
break;
}
solver_results_free (res);
if (res != NULL)
solver_results_free (res);
} else {
printf ("NLP not implemented yet!\n");
}
......
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