forked from AuroraMiddleware/gtk
snapshot: Handle NULL returns in pop_and_append()
This commit is contained in:
parent
30438c6e8b
commit
6b29dbf26a
@ -473,9 +473,12 @@ gtk_snapshot_pop_and_append (GtkSnapshot *snapshot)
|
||||
GskRenderNode *node;
|
||||
|
||||
node = gtk_snapshot_pop (snapshot);
|
||||
if (node)
|
||||
{
|
||||
gtk_snapshot_append_node (snapshot, node);
|
||||
gsk_render_node_unref (node);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_snapshot_get_renderer:
|
||||
|
Loading…
Reference in New Issue
Block a user