Skip to content

Commit

Permalink
missing decref members
Browse files Browse the repository at this point in the history
  • Loading branch information
szabolcsdombi committed Mar 14, 2023
1 parent 07a0f32 commit 6e4057d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions zengl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3230,6 +3230,7 @@ static PyObject * meth_camera(PyObject * self, PyObject * args, PyObject * kwarg
}

static void Context_dealloc(Context * self) {
Py_DECREF(self->loader);
Py_DECREF(self->descriptor_set_cache);
Py_DECREF(self->global_settings_cache);
Py_DECREF(self->sampler_cache);
Expand All @@ -3238,6 +3239,9 @@ static void Context_dealloc(Context * self) {
Py_DECREF(self->program_cache);
Py_DECREF(self->shader_cache);
Py_DECREF(self->includes);
Py_DECREF(self->default_framebuffer);
Py_DECREF(self->before_frame_callback);
Py_DECREF(self->after_frame_callback);
Py_DECREF(self->limits_dict);
Py_DECREF(self->info_dict);
Py_TYPE(self)->tp_free(self);
Expand Down

0 comments on commit 6e4057d

Please sign in to comment.