Notice to GitKraken users: A vulnerability has been found in the SSH key generation of GitKraken versions 7.6.0 to 8.0.0 (https://www.gitkraken.com/blog/weak-ssh-key-fix). If you use GitKraken and have generated a SSH key using one of these versions, please remove it both from your local workstation and from your LRZ GitLab profile.

21.10.2021, 9:00 - 11:00: Due to updates GitLab may be unavailable for some minutes between 09:00 and 11:00.

Commit 63ea46dc authored by Christian Schulte zu Berge's avatar Christian Schulte zu Berge
Browse files

fixed some valgrind issues

parent 45d9ad1e
......@@ -92,25 +92,25 @@ namespace campvis {
switch (wtp._baseType) {
case WeaklyTypedPointer::UINT8:
delete static_cast<uint8_t*>(wtp._pointer);
delete [] static_cast<uint8_t*>(wtp._pointer);
break;
case WeaklyTypedPointer::INT8:
delete static_cast<int8_t*>(wtp._pointer);
delete [] static_cast<int8_t*>(wtp._pointer);
break;
case WeaklyTypedPointer::UINT16:
delete static_cast<uint16_t*>(wtp._pointer);
delete [] static_cast<uint16_t*>(wtp._pointer);
break;
case WeaklyTypedPointer::INT16:
delete static_cast<int16_t*>(wtp._pointer);
delete [] static_cast<int16_t*>(wtp._pointer);
break;
case WeaklyTypedPointer::UINT32:
delete static_cast<uint32_t*>(wtp._pointer);
delete [] static_cast<uint32_t*>(wtp._pointer);
break;
case WeaklyTypedPointer::INT32:
delete static_cast<int32_t*>(wtp._pointer);
delete [] static_cast<int32_t*>(wtp._pointer);
break;
case WeaklyTypedPointer::FLOAT:
delete static_cast<float*>(wtp._pointer);
delete [] static_cast<float*>(wtp._pointer);
break;
default:
tgtAssert(false, "Should not reach this - wrong base data type!");
......
......@@ -43,6 +43,7 @@ Camera::Camera(const vec3& position, const vec3& focus, const vec3& up,
upVector_(normalize(up)),
frust_(Frustum(fovy, ratio, distn, distf)),
windowRatio_(1.f),
viewMatrixValid_(false),
projectionMode_(pm)
{
viewMatrix_ = mat4::createLookAt(position, focus, up);
......
......@@ -48,6 +48,7 @@ namespace campvis {
, p_clipX("clipX", "X Axis Clip Coordinates", tgt::ivec2(0), tgt::ivec2(0), tgt::ivec2(0))
, p_clipY("clipY", "Y Axis Clip Coordinates", tgt::ivec2(0), tgt::ivec2(0), tgt::ivec2(0))
, p_clipZ("clipZ", "Z Axis Clip Coordinates", tgt::ivec2(0), tgt::ivec2(0), tgt::ivec2(0))
, _sourceTimestamp(0)
{
addProperty(&p_sourceImageID);
addProperty(&p_geometryID);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment