Regression: GLib.Thread.join() calls now result in extra unref
Regression introduced with bf8c09bf.
Minimal test-case:
static void foo () throws Error {
bar ();
var worker_thread = new Thread<bool> ("worker", () => {
return true;
});
worker_thread.join ();
}
static void bar () throws Error {
}
Which generates:
_tmp0_ = g_thread_new ("worker", ___lambda4__gthread_func, NULL);
worker_thread = _tmp0_;
_tmp1_ = worker_thread;
_tmp2_ = _tmp1_;
_tmp1_ = NULL;
g_thread_join (_tmp2_);
_g_thread_unref0 (worker_thread);