Add pointer initializer to avoid segfaults

PerspCorrection::metadata was not initialized, which could cause a
segfault.
This commit is contained in:
Lawrence Lee
2020-06-12 10:49:11 -07:00
parent 852b3270e1
commit 7b4504e34f

View File

@@ -38,6 +38,7 @@ PerspCorrection::PerspCorrection () : FoldableToolPanel(this, "perspective", M("
EvPerspProjRotate = mapper->newEvent(TRANSFORM, "HISTORY_MSG_PERSP_PROJ_ROTATE");
EvPerspProjShift = mapper->newEvent(TRANSFORM, "HISTORY_MSG_PERSP_PROJ_SHIFT");
lens_geom_listener = nullptr;
metadata = nullptr;
Gtk::Image* ipersHL = Gtk::manage (new RTImage ("perspective-horizontal-left-small.png"));
Gtk::Image* ipersHR = Gtk::manage (new RTImage ("perspective-horizontal-right-small.png"));