core: port errorhelper.c to C++

Use the C++-version of membuffer.

This fixes two memory leaks: report_info() on every(!) invocation
and report_error() before the error callback is set.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2024-03-24 19:21:00 +01:00 committed by bstoeger
parent ec0bc2d06c
commit b097c0a44f
3 changed files with 4 additions and 5 deletions

View file

@ -85,7 +85,7 @@ set(SUBSURFACE_CORE_LIB_SRCS
eventtype.h
equipment.c
equipment.h
errorhelper.c
errorhelper.cpp
exif.cpp
exif.h
extradata.h