Chasing memory corruption (2)
Chasing memory corruption (2)

Due further addItem() calls the inner rItems vector reallocated and
pointer to colorMode was dangling.

TODO we need saner conventions to prevent such issues.

Tracked down with clang address sanitizer.

QMAKE_CXXFLAGS_DEBUG += -fsanitize=address -fno-omit-frame-pointer
QMAKE_LFLAGS_DEBUG += -fsanitize=address

dresden-elektronik/deconz-rest-plugin,dresden-elektronik/deconz-rest-plugin,dresden-elektronik/deconz-rest-plugin,dresden-elektronik/deconz-rest-plugin,dresden-elektronik/deconz-rest-plugin