Skip to content

Commit 6f596db

Browse files
committed
Call super() without parameters
1 parent 774d02c commit 6f596db

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/_macosx.m

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -572,8 +572,6 @@ bool mpl_check_modifier(bool present, PyObject* list, char const* name)
572572
},
573573
};
574574

575-
static PyTypeObject FigureManagerType;
576-
577575
typedef struct {
578576
PyObject_HEAD
579577
Window* window;
@@ -690,10 +688,8 @@ bool mpl_check_modifier(bool present, PyObject* list, char const* name)
690688
self->window = NULL;
691689

692690
// call super().destroy()
693-
PyObject *super_obj = PyObject_CallFunctionObjArgs(
691+
PyObject *super_obj = PyObject_CallFunction(
694692
(PyObject *)&PySuper_Type,
695-
(PyObject *)&FigureManagerType,
696-
self,
697693
NULL
698694
);
699695
if (super_obj == NULL) {

0 commit comments

Comments
 (0)