gtk: Fix possibility of NULL variable
It's quite unlikely since it's initialized in instance initialization. CID #1417721
This commit is contained in:
parent
e7724354d9
commit
b27bdc1786
@ -496,6 +496,7 @@ gtk_gst_gl_widget_init_winsys (GtkGstGLWidget * gst_widget)
|
|||||||
GError *error = NULL;
|
GError *error = NULL;
|
||||||
|
|
||||||
g_return_val_if_fail (GTK_IS_GST_GL_WIDGET (gst_widget), FALSE);
|
g_return_val_if_fail (GTK_IS_GST_GL_WIDGET (gst_widget), FALSE);
|
||||||
|
g_return_val_if_fail (priv->display != NULL, FALSE);
|
||||||
|
|
||||||
GTK_GST_BASE_WIDGET_LOCK (gst_widget);
|
GTK_GST_BASE_WIDGET_LOCK (gst_widget);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user