Fix possible segfault when EventDelegate destroyed
This commit is contained in:
parent
7b6478f514
commit
8376d85961
@ -72,7 +72,8 @@ HColumnLayout {
|
||||
chat.userId,
|
||||
"get_event_profiles",
|
||||
[chat.roomId, model.id],
|
||||
() => { fetchProfilesFuture = null }
|
||||
// The if avoids segfault if eventDelegate is already destroyed
|
||||
() => { if (eventDelegate) fetchProfilesFuture = null }
|
||||
)
|
||||
|
||||
Component.onDestruction:
|
||||
|
Loading…
Reference in New Issue
Block a user