diff options
author | Edward Hervey <edward@centricular.com> | 2017-11-24 08:00:21 +0100 |
---|---|---|
committer | Edward Hervey <bilboed@bilboed.com> | 2017-11-24 08:00:21 +0100 |
commit | b27bdc1786e54d7b4598a4378d55eb62f7211c5d (patch) | |
tree | 1d8da647630dcfed4292afbd229386011c62eaec | |
parent | e7724354d99a7f9eda8004e6a1f8fca706b20af1 (diff) |
gtk: Fix possibility of NULL variable
It's quite unlikely since it's initialized in instance initialization.
CID #1417721
-rw-r--r-- | ext/gtk/gtkgstglwidget.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/gtk/gtkgstglwidget.c b/ext/gtk/gtkgstglwidget.c index cfad4f175..fdece48e8 100644 --- a/ext/gtk/gtkgstglwidget.c +++ b/ext/gtk/gtkgstglwidget.c @@ -496,6 +496,7 @@ gtk_gst_gl_widget_init_winsys (GtkGstGLWidget * gst_widget) GError *error = NULL; 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); |