Commit adbaee79 authored by Hugo Lefeuvre's avatar Hugo Lefeuvre Committed by Daniel Boles
Browse files

gtkstack: fix null pointer dereference

The gtk_stack_snapshot_slide() function dereferences the
last_visible_child pointer without proper != NULL ckeck. This might
result in NULL pointer dereference and crash if last_visible_child is

Add a != NULL check before dereferencing the pointer.

cherry-picked from !361
parent b10cde7b
Pipeline #34420 passed with stage
in 7 minutes and 46 seconds