Skip to content

Commit 3af0bfe

Browse files
committed
Fix window ub/segfault when quit/destroyed
1 parent abe99c2 commit 3af0bfe

File tree

2 files changed

+137
-29
lines changed

2 files changed

+137
-29
lines changed

src_c/include/_pygame.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -530,6 +530,8 @@ typedef struct {
530530
SDL_bool _is_borrowed;
531531
pgSurfaceObject *surf;
532532
SDL_GLContext context;
533+
PyObject *weakreflist;
534+
PyObject *selfweakref;
533535
} pgWindowObject;
534536

535537
#ifndef PYGAMEAPI_WINDOW_INTERNAL

0 commit comments

Comments
 (0)