Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Evangelos Ribeiro Tzaras
chatty
Commits
e8629a69
Commit
e8629a69
authored
Jul 05, 2021
by
Mohammed Sadiq
Browse files
ma-chat: Fix memory leaks
parent
91e2efa1
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/matrix/chatty-ma-chat.c
View file @
e8629a69
...
...
@@ -1720,10 +1720,22 @@ chatty_ma_chat_finalize (GObject *object)
g_clear_object
(
&
self
->
avatar_cancellable
);
g_list_store_remove_all
(
self
->
message_list
);
g_list_store_remove_all
(
self
->
buddy_list
);
g_clear_object
(
&
self
->
message_list
);
g_clear_object
(
&
self
->
sorted_message_list
);
g_clear_object
(
&
self
->
buddy_list
);
g_clear_object
(
&
self
->
matrix_api
);
g_clear_object
(
&
self
->
matrix_enc
);
g_clear_object
(
&
self
->
account
);
g_clear_object
(
&
self
->
notification
);
g_clear_object
(
&
self
->
self_buddy
);
g_clear_pointer
(
&
self
->
avatar_file
,
chatty_file_info_free
);
g_clear_object
(
&
self
->
avatar
);
g_clear_object
(
&
self
->
matrix_db
);
g_clear_object
(
&
self
->
history_db
);
g_clear_pointer
(
&
self
->
json_data
,
json_object_unref
);
g_queue_free_full
(
self
->
message_queue
,
g_object_unref
);
g_free
(
self
->
room_name
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment