File tree 1 file changed +0
-8
lines changed
1 file changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -4282,21 +4282,16 @@ exec_surface(PyObject *module)
4282
4282
static void * c_api [PYGAMEAPI_SURFACE_NUMSLOTS ];
4283
4283
4284
4284
if (pg_warn_simd_at_runtime_but_uncompiled () < 0 ) {
4285
- Py_DECREF (module );
4286
4285
return -1 ;
4287
4286
}
4288
4287
4289
- Py_INCREF (& pgSurface_Type );
4290
4288
if (PyModule_AddObjectRef (module , "SurfaceType" ,
4291
4289
(PyObject * )& pgSurface_Type )) {
4292
- Py_DECREF (module );
4293
4290
return -1 ;
4294
4291
}
4295
4292
4296
- Py_INCREF (& pgSurface_Type );
4297
4293
if (PyModule_AddObjectRef (module , "Surface" ,
4298
4294
(PyObject * )& pgSurface_Type )) {
4299
- Py_DECREF (module );
4300
4295
return -1 ;
4301
4296
}
4302
4297
@@ -4307,13 +4302,10 @@ exec_surface(PyObject *module)
4307
4302
c_api [3 ] = pgSurface_SetSurface ;
4308
4303
apiobj = encapsulate_api (c_api , "surface" );
4309
4304
if (PyModule_AddObjectRef (module , PYGAMEAPI_LOCAL_ENTRY , apiobj )) {
4310
- Py_DECREF (module );
4311
4305
return -1 ;
4312
4306
}
4313
4307
4314
- Py_XINCREF (pgSurface_Type .tp_dict );
4315
4308
if (PyModule_AddObjectRef (module , "_dict" , pgSurface_Type .tp_dict )) {
4316
- Py_DECREF (module );
4317
4309
return -1 ;
4318
4310
}
4319
4311
You can’t perform that action at this time.
0 commit comments