snapshot: Handle NULL returns in pop_and_append()

This commit is contained in:
Benjamin Otte 2016-12-17 08:03:43 +01:00
parent 30438c6e8b
commit 6b29dbf26a

View File

@ -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: