commit b8cc56e6c0ba1a92d6951cc085d8b7d5593a4452 parent 17392fe6169d39a75645728f44aa117f67b5331d Author: Jacki <jacki@thejackimonster.de> Date: Wed, 14 Feb 2024 17:13:48 +0100 Fix segfault if thread is not yet started Signed-off-by: Jacki <jacki@thejackimonster.de> Diffstat:
| M | src/ui/new_contact.c | | | 3 | ++- |
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/ui/new_contact.c b/src/ui/new_contact.c @@ -573,7 +573,8 @@ ui_new_contact_dialog_cleanup(UI_NEW_CONTACT_Handle *handle) { g_assert(handle); - pthread_join(handle->video_tid, NULL); + if (handle->video_tid) + pthread_join(handle->video_tid, NULL); g_object_unref(handle->builder);