gui/scan.cpp: fix memleak
Merge remote-tracking branch 'cool-next-cc/next-cc'

Conflicts:
	src/gui/scan.cpp