aboutsummaryrefslogtreecommitdiff
path: root/src/ui/new_lobby.c
diff options
context:
space:
mode:
authorTheJackiMonster <thejackimonster@gmail.com>2022-03-13 13:56:02 +0100
committerTheJackiMonster <thejackimonster@gmail.com>2022-03-13 13:56:02 +0100
commit43019c37a2a12147c401d75327e19e2ac383d6f4 (patch)
tree50c569d564b9c75559e1d7165f973ae956da04a1 /src/ui/new_lobby.c
parent85b243c149d96ac88c5afd20993bbe18c50e16ca (diff)
downloadmessenger-gtk-43019c37a2a12147c401d75327e19e2ac383d6f4.tar.gz
messenger-gtk-43019c37a2a12147c401d75327e19e2ac383d6f4.zip
Added warning handling and leave messages, cleaning some code and fixed issue with QR pixel data
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
Diffstat (limited to 'src/ui/new_lobby.c')
-rw-r--r--src/ui/new_lobby.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ui/new_lobby.c b/src/ui/new_lobby.c
index 0a9fe37..e75c371 100644
--- a/src/ui/new_lobby.c
+++ b/src/ui/new_lobby.c
@@ -198,7 +198,7 @@ handle_id_drawing_area_draw(GtkWidget* drawing_area,
198 const guint w = handle->qr->width; 198 const guint w = handle->qr->width;
199 const guint w2 = w + m * 2; 199 const guint w2 = w + m * 2;
200 200
201 guchar pixels [w2 * w2 * 3]; 201 guchar *pixels = (guchar*) g_malloc(sizeof(guchar) * w2 * w2 * 3);
202 202
203 guint x, y, z; 203 guint x, y, z;
204 for (y = 0; y < w2; y++) 204 for (y = 0; y < w2; y++)
@@ -263,10 +263,11 @@ handle_id_drawing_area_draw(GtkWidget* drawing_area,
263 g_object_unref(scaled); 263 g_object_unref(scaled);
264 g_object_unref(image); 264 g_object_unref(image);
265 265
266 g_free(pixels);
267
266 return FALSE; 268 return FALSE;
267} 269}
268 270
269
270void 271void
271ui_new_lobby_dialog_init(MESSENGER_Application *app, 272ui_new_lobby_dialog_init(MESSENGER_Application *app,
272 UI_NEW_LOBBY_Handle *handle) 273 UI_NEW_LOBBY_Handle *handle)
@@ -386,7 +387,6 @@ ui_new_lobby_dialog_init(MESSENGER_Application *app,
386 ); 387 );
387} 388}
388 389
389
390void 390void
391ui_new_lobby_dialog_cleanup(UI_NEW_LOBBY_Handle *handle) 391ui_new_lobby_dialog_cleanup(UI_NEW_LOBBY_Handle *handle)
392{ 392{