Skip to content

Commit

Permalink
[WaylandWindow] Remove a scary log
Browse files Browse the repository at this point in the history
Happens when destroy() is called without previous init()
  • Loading branch information
lbonn committed Mar 1, 2024
1 parent 37b8e9f commit ccea312
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/modes/wayland-window.c
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,9 @@ static void wayland_window_mode_destroy(Mode *sw) {
WaylandWindowModePrivateData *pd =
(WaylandWindowModePrivateData *)mode_get_private_data(sw);

g_return_if_fail(pd != NULL);
if (pd == NULL) {
return;
}

wayland_window_private_free(pd);
mode_set_private_data(sw, NULL);
Expand Down

0 comments on commit ccea312

Please sign in to comment.