summaryrefslogtreecommitdiff
path: root/src/lib/ecore_evas/ecore_evas.c
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2013-07-11 08:49:07 +0100
committerChris Michael <cp.michael@samsung.com>2013-07-11 08:56:44 +0100
commitb8124f8b325604eb37bb7654fa6c440b8156f0d4 (patch)
tree465bf0cc61f9a295dddd4074385fef6b1044a230 /src/lib/ecore_evas/ecore_evas.c
parent2dc165936de16ba5e6f66045344c15fd1dec2eda (diff)
Check for valid interface pixmap_get function before trying to call it.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to 'src/lib/ecore_evas/ecore_evas.c')
-rw-r--r--src/lib/ecore_evas/ecore_evas.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/lib/ecore_evas/ecore_evas.c b/src/lib/ecore_evas/ecore_evas.c
index 333dd43685..72ac807241 100644
--- a/src/lib/ecore_evas/ecore_evas.c
+++ b/src/lib/ecore_evas/ecore_evas.c
@@ -3011,7 +3011,10 @@ ecore_evas_software_x11_pixmap_get(const Ecore_Evas *ee)
3011 iface = (Ecore_Evas_Interface_Software_X11 *)_ecore_evas_interface_get(ee, "software_x11"); 3011 iface = (Ecore_Evas_Interface_Software_X11 *)_ecore_evas_interface_get(ee, "software_x11");
3012 EINA_SAFETY_ON_NULL_RETURN_VAL(iface, 0); 3012 EINA_SAFETY_ON_NULL_RETURN_VAL(iface, 0);
3013 3013
3014 return iface->pixmap_get(ee); 3014 if (iface->pixmap_get)
3015 return iface->pixmap_get(ee);
3016
3017 return 0;
3015} 3018}
3016 3019
3017/** 3020/**
@@ -3087,7 +3090,10 @@ ecore_evas_gl_x11_pixmap_get(const Ecore_Evas *ee)
3087 iface = (Ecore_Evas_Interface_Gl_X11 *)_ecore_evas_interface_get(ee, "gl_x11"); 3090 iface = (Ecore_Evas_Interface_Gl_X11 *)_ecore_evas_interface_get(ee, "gl_x11");
3088 EINA_SAFETY_ON_NULL_RETURN_VAL(iface, 0); 3091 EINA_SAFETY_ON_NULL_RETURN_VAL(iface, 0);
3089 3092
3090 return iface->pixmap_get(ee); 3093 if (iface->pixmap_get)
3094 return iface->pixmap_get(ee);
3095
3096 return 0;
3091} 3097}
3092 3098
3093/** 3099/**