[BUGFIX] Fix bad memory leak.
This commit is contained in:
parent
c0216de4ae
commit
ad271edbcf
@ -43,7 +43,7 @@ class HoughMachine {
|
|||||||
this->d_ang = 0;
|
this->d_ang = 0;
|
||||||
this->n_rad = 0;
|
this->n_rad = 0;
|
||||||
this->d_rad = 0;
|
this->d_rad = 0;
|
||||||
if(this->hough_arr == NULL) {
|
if(this->hough_arr != NULL) {
|
||||||
free(this->hough_arr);
|
free(this->hough_arr);
|
||||||
this->hough_arr = NULL;
|
this->hough_arr = NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user