According to this
Vala doesn't have garbage collection. It does reference counting.
I'm not exactly sure what the difference is between garbage collection and reference counting nor could I find a clear explanation. Do I explicitly need to delete bmp and/or add a destructor to class Bmp? IOW: does this code have a memory leak?
public void* run() {
while(true) {
if(detected) {
...
var bmp = new Bmp(800,800);
...
public class Bmp {
...