nil the delegates of the split-view, avoid a crash on close window.

This commit is contained in:
Riccardo Mottola 2023-01-16 21:24:21 +01:00
parent fdebc6367f
commit 63af855c24
2 changed files with 9 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2022-01-16 Riccardo Mottola <rm@gnu.org>
* Framework/PCProjectWindow.m
nil the delegates of the split-view, avoid a crash on close window.
2022-01-12 Riccardo Mottola <rm@gnu.org>
* Modules/Editors/ProjectCenter/PCEditor.h

View file

@ -1,10 +1,11 @@
/*
GNUstep ProjectCenter - http://www.gnustep.org/experience/ProjectCenter.html
Copyright (C) 2000-2014 Free Software Foundation
Copyright (C) 2000-2023 Free Software Foundation
Authors: Philippe C.D. Robert
Serg Stoyan
Riccardo Mottola
This file is part of GNUstep.
@ -260,6 +261,8 @@
- (void)dealloc
{
[[NSNotificationCenter defaultCenter] removeObserver:self];
[h_split setDelegate:nil];
[v_split setDelegate:nil];
[projectWindow close];
[super dealloc];