Fix gtk source buffer segfault