masks: fix huge memory leak
(cherry picked from commit 6371615099a3d86cfa0193d4f499adb95ce70f40)
Use glib str functions
(cherry picked from commit 59bac239f60a92a46497306a12be6da7486e94c4)

Conflicts:
	src/iop/colorin.c
For static arrays, use sizeof(array), not magic numbers
(cherry picked from commit 61d62f270d0135b07ea7a357d11dd66096596a0b)

Conflicts:
	src/common/image.h
	src/control/jobs/camera_jobs.c
	src/control/jobs/image_jobs.c
	src/gui/gtk.c
Fix whitespace
(cherry picked from commit 1eb596658310bbdf6543cb75798f02d32e3c0c6e)
Do not take sizeof of a pointer
(cherry picked from commit c2bc8b718747a3cdb790231346b2973697674fd6)