aboutsummaryrefslogtreecommitdiff
path: root/src/ui/chat.c
diff options
context:
space:
mode:
authorTheJackiMonster <thejackimonster@gmail.com>2022-08-12 04:01:41 +0200
committerTheJackiMonster <thejackimonster@gmail.com>2022-08-12 04:01:41 +0200
commit05a13d32aa41505a7fcc587f3848b326085d0944 (patch)
tree3e58575050a5e0bd16033300f79d899f5406d2c4 /src/ui/chat.c
parent0fe98e7e4001f41b2e6d9520dcb5cde1c3e631e6 (diff)
downloadmessenger-gtk-05a13d32aa41505a7fcc587f3848b326085d0944.tar.gz
messenger-gtk-05a13d32aa41505a7fcc587f3848b326085d0944.zip
Added more checks to find source of randomly occuring issue
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
Diffstat (limited to 'src/ui/chat.c')
-rw-r--r--src/ui/chat.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/ui/chat.c b/src/ui/chat.c
index 3ac4847..548a307 100644
--- a/src/ui/chat.c
+++ b/src/ui/chat.c
@@ -1536,7 +1536,7 @@ ui_chat_add_message(UI_CHAT_Handle *handle,
1536 MESSENGER_Application *app, 1536 MESSENGER_Application *app,
1537 UI_MESSAGE_Handle *message) 1537 UI_MESSAGE_Handle *message)
1538{ 1538{
1539 GNUNET_assert((handle) && (message)); 1539 GNUNET_assert((handle) && (message) && (message->message_box));
1540 1540
1541 gtk_container_add( 1541 gtk_container_add(
1542 GTK_CONTAINER(handle->messages_listbox), 1542 GTK_CONTAINER(handle->messages_listbox),
@@ -1557,7 +1557,7 @@ ui_chat_remove_message(UI_CHAT_Handle *handle,
1557 UNUSED MESSENGER_Application *app, 1557 UNUSED MESSENGER_Application *app,
1558 UI_MESSAGE_Handle *message) 1558 UI_MESSAGE_Handle *message)
1559{ 1559{
1560 GNUNET_assert((handle) && (message)); 1560 GNUNET_assert((handle) && (message) && (message->message_box));
1561 1561
1562 handle->messages = g_list_remove(handle->messages, message); 1562 handle->messages = g_list_remove(handle->messages, message);
1563 1563
@@ -1590,7 +1590,8 @@ void
1590ui_chat_remove_file_load(UI_CHAT_Handle *handle, 1590ui_chat_remove_file_load(UI_CHAT_Handle *handle,
1591 UI_FILE_LOAD_ENTRY_Handle *file_load) 1591 UI_FILE_LOAD_ENTRY_Handle *file_load)
1592{ 1592{
1593 GNUNET_assert((handle) && (file_load) && (handle == file_load->chat)); 1593 GNUNET_assert((handle) && (file_load) && (handle == file_load->chat) &&
1594 (file_load->entry_box));
1594 1595
1595 handle->loads = g_list_remove(handle->loads, file_load); 1596 handle->loads = g_list_remove(handle->loads, file_load);
1596 1597