From: berak Date: Sat, 8 Feb 2014 13:42:09 +0000 (+0100) Subject: proper initialization for ccimpl in bool CascadeClassifier::read(const FileNode X-Git-Tag: submit/tizen_ivi/20141117.190038~2^2~625^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3959329ef412cbedeb2c02981cc52b08301aad79;p=profile%2Fivi%2Fopencv.git proper initialization for ccimpl in bool CascadeClassifier::read(const FileNode --- diff --git a/modules/objdetect/src/cascadedetect.cpp b/modules/objdetect/src/cascadedetect.cpp index ef9d21e..68b923e 100644 --- a/modules/objdetect/src/cascadedetect.cpp +++ b/modules/objdetect/src/cascadedetect.cpp @@ -1557,7 +1557,7 @@ bool CascadeClassifier::load( const String& filename ) bool CascadeClassifier::read(const FileNode &root) { - Ptr ccimpl; + Ptr ccimpl = makePtr(); bool ok = ccimpl->read_(root); if( ok ) cc = ccimpl.staticCast();