devilhorns pushed a commit to branch master.
commit b8124f8b325604eb37bb7654fa6c440b8156f0d4
Author: Chris Michael <[email protected]>
Date: Thu Jul 11 08:49:07 2013 +0100
Check for valid interface pixmap_get function before trying to call it.
Signed-off-by: Chris Michael <[email protected]>
---
src/lib/ecore_evas/ecore_evas.c | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/src/lib/ecore_evas/ecore_evas.c b/src/lib/ecore_evas/ecore_evas.c
index 333dd43..72ac807 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)
iface = (Ecore_Evas_Interface_Software_X11 *)_ecore_evas_interface_get(ee,
"software_x11");
EINA_SAFETY_ON_NULL_RETURN_VAL(iface, 0);
- return iface->pixmap_get(ee);
+ if (iface->pixmap_get)
+ return iface->pixmap_get(ee);
+
+ return 0;
}
/**
@@ -3087,7 +3090,10 @@ ecore_evas_gl_x11_pixmap_get(const Ecore_Evas *ee)
iface = (Ecore_Evas_Interface_Gl_X11 *)_ecore_evas_interface_get(ee,
"gl_x11");
EINA_SAFETY_ON_NULL_RETURN_VAL(iface, 0);
- return iface->pixmap_get(ee);
+ if (iface->pixmap_get)
+ return iface->pixmap_get(ee);
+
+ return 0;
}
/**
--
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk