From e932b30d1c1c5139d5fd2cf19a4edcf2ae4c9a15 Mon Sep 17 00:00:00 2001 From: Krisjanis Rijnieks Date: Sun, 3 Jan 2016 15:46:09 +0000 Subject: [PATCH] Initialize `Info` in the constructor of `ofxPiMapper` --- src/ofxPiMapper.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ofxPiMapper.cpp b/src/ofxPiMapper.cpp index f5b1a7f..3ced97c 100644 --- a/src/ofxPiMapper.cpp +++ b/src/ofxPiMapper.cpp @@ -4,7 +4,7 @@ ofxPiMapper::ofxPiMapper(){ bShowInfo = false; isSetUp = false; _mediaServer = new ofx::piMapper::MediaServer(); - _info = 0; + _info = new ofx::piMapper::Info(); } void ofxPiMapper::setup(){ @@ -26,7 +26,6 @@ void ofxPiMapper::setup(){ isSetUp = true; ofLogNotice("ofxPiMapper") << "Done setting up"; _application = new ofx::piMapper::Application(this); - _info = new ofx::piMapper::Info(); } void ofxPiMapper::draw(){