Work-around use after free

Upstream: https://gitlab.gnome.org/GNOME/vala/-/issues/751
This commit is contained in:
Marvin W 2020-04-01 16:08:28 +02:00 committed by fiaxh
parent f7a3882843
commit 2b1e7fee28
2 changed files with 2 additions and 2 deletions

View file

@ -61,7 +61,7 @@ public static async AvatarDrawer get_conversation_avatar_drawer(StreamInteractor
return yield get_conversation_participants_avatar_drawer(stream_interactor, conversation, new Jid[0]);
}
public static async AvatarDrawer get_conversation_participants_avatar_drawer(StreamInteractor stream_interactor, Conversation conversation, Jid[] jids) {
public static async AvatarDrawer get_conversation_participants_avatar_drawer(StreamInteractor stream_interactor, Conversation conversation, owned Jid[] jids) {
AvatarManager avatar_manager = stream_interactor.get_module(AvatarManager.IDENTITY);
MucManager muc_manager = stream_interactor.get_module(MucManager.IDENTITY);
if (conversation.type_ != Conversation.Type.GROUPCHAT) {

View file

@ -18,7 +18,7 @@ public class StanzaWriter {
yield write_data(s.data);
}
private async void write_data(uint8[] data) throws XmlError {
private async void write_data(owned uint8[] data) throws XmlError {
if (running) {
queue.push_tail(new SourceFuncWrapper(write_data.callback));
yield;