File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -2895,10 +2895,6 @@ static void context_cleanup(const void* info)
2895
2895
PyErr_SetString (PyExc_RuntimeError, " Failed to obtain run loop" );
2896
2896
return NULL ;
2897
2897
}
2898
- context.version = 0 ;
2899
- context.retain = 0 ;
2900
- context.release = context_cleanup;
2901
- context.copyDescription = 0 ;
2902
2898
attribute = PyObject_GetAttrString ((PyObject*)self, " _interval" );
2903
2899
if (attribute==NULL )
2904
2900
{
@@ -2938,6 +2934,10 @@ static void context_cleanup(const void* info)
2938
2934
PyErr_SetString (PyExc_RuntimeError, " _on_timer should be a Python method" );
2939
2935
return NULL ;
2940
2936
}
2937
+ context.version = 0 ;
2938
+ context.retain = NULL ;
2939
+ context.release = context_cleanup;
2940
+ context.copyDescription = NULL ;
2941
2941
context.info = attribute;
2942
2942
timer = CFRunLoopTimerCreate (kCFAllocatorDefault ,
2943
2943
0 ,
You can’t perform that action at this time.
0 commit comments