[BUGFIX] Fix bad memory leak.

This commit is contained in:
Jan Philipp Timme 2016-01-07 09:45:52 +01:00
parent c0216de4ae
commit ad271edbcf

View File

@ -43,7 +43,7 @@ class HoughMachine {
this->d_ang = 0;
this->n_rad = 0;
this->d_rad = 0;
if(this->hough_arr == NULL) {
if(this->hough_arr != NULL) {
free(this->hough_arr);
this->hough_arr = NULL;
}