Commit 11c76c64 authored by Mohammed Sadiq's avatar Mohammed Sadiq
Browse files

ma-chat: Fix a memory leak

parent 3b3d8166
Pipeline #69601 passed with stages
in 9 minutes and 20 seconds
...@@ -951,7 +951,7 @@ get_room_state_cb (GObject *obj, ...@@ -951,7 +951,7 @@ get_room_state_cb (GObject *obj,
{ {
ChattyMaChat *self = user_data; ChattyMaChat *self = user_data;
g_autoptr(GError) error = NULL; g_autoptr(GError) error = NULL;
JsonArray *array; g_autoptr(JsonArray) array = NULL;
g_assert (CHATTY_IS_MA_CHAT (self)); g_assert (CHATTY_IS_MA_CHAT (self));
...@@ -1030,7 +1030,7 @@ get_room_name_cb (GObject *obj, ...@@ -1030,7 +1030,7 @@ get_room_name_cb (GObject *obj,
{ {
ChattyMaChat *self = user_data; ChattyMaChat *self = user_data;
g_autoptr(GError) error = NULL; g_autoptr(GError) error = NULL;
JsonObject *object; g_autoptr(JsonObject) object = NULL;
const char *name; const char *name;
g_assert (CHATTY_IS_MA_CHAT (self)); g_assert (CHATTY_IS_MA_CHAT (self));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment