mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 06:00:22 +00:00
overlay: Don't access priv pointer before typ check
This commit is contained in:
parent
8096740ea4
commit
ddbafa023a
@ -868,12 +868,13 @@ void
|
|||||||
gtk_overlay_add_overlay (GtkOverlay *overlay,
|
gtk_overlay_add_overlay (GtkOverlay *overlay,
|
||||||
GtkWidget *widget)
|
GtkWidget *widget)
|
||||||
{
|
{
|
||||||
GtkOverlayPrivate *priv = overlay->priv;
|
GtkOverlayPrivate *priv;
|
||||||
GtkOverlayChild *child;
|
GtkOverlayChild *child;
|
||||||
|
|
||||||
g_return_if_fail (GTK_IS_OVERLAY (overlay));
|
g_return_if_fail (GTK_IS_OVERLAY (overlay));
|
||||||
g_return_if_fail (GTK_IS_WIDGET (widget));
|
g_return_if_fail (GTK_IS_WIDGET (widget));
|
||||||
|
|
||||||
|
priv = overlay->priv;
|
||||||
child = g_slice_new0 (GtkOverlayChild);
|
child = g_slice_new0 (GtkOverlayChild);
|
||||||
child->widget = widget;
|
child->widget = widget;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user