[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [34927] trunk/blender/source/blender/ python/intern/bpy_rna.c: possible crash in last commit, possible tp_init isn't defined.

Campbell Barton ideasman42 at gmail.com
Thu Feb 17 08:30:16 CET 2011


Revision: 34927
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=34927
Author:   campbellbarton
Date:     2011-02-17 07:30:16 +0000 (Thu, 17 Feb 2011)
Log Message:
-----------
possible crash in last commit, possible tp_init isn't defined.

Modified Paths:
--------------
    trunk/blender/source/blender/python/intern/bpy_rna.c

Modified: trunk/blender/source/blender/python/intern/bpy_rna.c
===================================================================
--- trunk/blender/source/blender/python/intern/bpy_rna.c	2011-02-17 07:21:44 UTC (rev 34926)
+++ trunk/blender/source/blender/python/intern/bpy_rna.c	2011-02-17 07:30:16 UTC (rev 34927)
@@ -5474,12 +5474,12 @@
 		            Py_DECREF(py_srna);
 		            py_srna= NULL;
 					/* err set below */
-		        }
-				else {
-					py_class_instance= py_srna;
 				}
 				Py_DECREF(args);
 			}
+
+			py_class_instance= py_srna;
+
 #else
 			/* 'almost' all the time calling the class isnt needed.
 			 * We could just do...




More information about the Bf-blender-cvs mailing list