From 34d42e4ea364c9a8c61e86c9398bac1ab9002d5e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 16 Jun 2010 19:30:25 +0200 Subject: [PATCH] ximagesrc: Fix NULL pointer dereference when allocation of the ximage fails --- sys/ximage/gstximagesrc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/ximage/gstximagesrc.c b/sys/ximage/gstximagesrc.c index 6db4c857c..048c1f343 100644 --- a/sys/ximage/gstximagesrc.c +++ b/sys/ximage/gstximagesrc.c @@ -389,7 +389,8 @@ gst_ximage_src_ximage_get (GstXImageSrc * ximagesrc) (BufferReturnFunc) (gst_ximage_src_return_buf)); if (ximage == NULL) { GST_ELEMENT_ERROR (ximagesrc, RESOURCE, WRITE, (NULL), - ("could not create a %dx%d ximage", ximage->width, ximage->height)); + ("could not create a %dx%d ximage", ximagesrc->width, + ximagesrc->height)); g_mutex_unlock (ximagesrc->x_lock); return NULL; } -- 2.34.1