From e7ef84b2c2826d60850ad9c8b0f6983033f4c87c Mon Sep 17 00:00:00 2001 From: Maria Dimashova Date: Fri, 29 Apr 2011 17:12:55 +0000 Subject: [PATCH] fixed #932 --- modules/features2d/src/matchers.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/features2d/src/matchers.cpp b/modules/features2d/src/matchers.cpp index 6c1e9fb0a..ff3a3aabb 100755 --- a/modules/features2d/src/matchers.cpp +++ b/modules/features2d/src/matchers.cpp @@ -914,7 +914,8 @@ void OneWayDescriptorMatcher::clear() GenericDescriptorMatcher::clear(); prevTrainCount = 0; - base->clear(); + if( !base.empty() ) + base->clear(); } void OneWayDescriptorMatcher::train()