From 55f7d0e6dac6acd8696a99d371674e8ed4ec0bee Mon Sep 17 00:00:00 2001 From: Vladislav Sovrasov Date: Wed, 29 Mar 2017 14:46:26 +0300 Subject: [PATCH] Fix not initialized raw pointers in PPF3DDetector --- modules/surface_matching/src/ppf_match_3d.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/surface_matching/src/ppf_match_3d.cpp b/modules/surface_matching/src/ppf_match_3d.cpp index dc8d10ecf..258ce6a77 100644 --- a/modules/surface_matching/src/ppf_match_3d.cpp +++ b/modules/surface_matching/src/ppf_match_3d.cpp @@ -129,6 +129,9 @@ PPF3DDetector::PPF3DDetector() angle_step = angle_step_radians; trained = false; + hash_table = NULL; + hash_nodes = NULL; + setSearchParams(); } @@ -142,6 +145,9 @@ PPF3DDetector::PPF3DDetector(const double RelativeSamplingStep, const double Rel angle_step = angle_step_radians; trained = false; + hash_table = NULL; + hash_nodes = NULL; + setSearchParams(); }