hippo-canvas r7288 - trunk/python
- From: otaylor svn gnome org
- To: svn-commits-list gnome org
- Subject: hippo-canvas r7288 - trunk/python
- Date: Thu, 7 Aug 2008 20:48:55 +0000 (UTC)
Author: otaylor
Date: Thu Aug 7 20:48:55 2008
New Revision: 7288
URL: http://svn.gnome.org/viewvc/hippo-canvas?rev=7288&view=rev
Log:
Fix a crash when the image hook returns something other than a surface (like None)
Modified:
trunk/python/hippo.override
Modified: trunk/python/hippo.override
==============================================================================
--- trunk/python/hippo.override (original)
+++ trunk/python/hippo.override Thu Aug 7 20:48:55 2008
@@ -1006,7 +1006,7 @@
arglist = Py_BuildValue("(s)", image_name);
result = PyEval_CallObject(_canvas_load_image_hook_cb, arglist);
Py_DECREF(arglist);
- if (result == NULL)
+ if (result == NULL || !PyObject_TypeCheck(result, &PycairoSurface_Type))
goto out;
surface_result = (PycairoSurface*)result;
surface = surface_result->surface;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]