summaryrefslogtreecommitdiff
path: root/emulators/qemu-devel/files/patch-z8-bsd-user-unref
blob: 6f9b0f96617a694df96950e72eeac02a360ac072 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- qemu-1.4.0/bsd-user/syscall.c.orig
+++ qemu-1.4.0/bsd-user/syscall.c
@@ -2418,7 +2418,7 @@ do_thr_exit(CPUArchState *cpu_env, abi_u
 		}
 
 		thread_env = NULL;
-		object_delete(OBJECT(ENV_GET_CPU(cpu_env)));
+		object_unref(OBJECT(ENV_GET_CPU(cpu_env)));
 		g_free(ts);
 		pthread_exit(NULL);
 	}