From dbc8fbc90a3a6fa4b35b0a291907549b69f84afb Mon Sep 17 00:00:00 2001 From: angelo Date: Sat, 22 Jun 1996 08:20:00 +0000 Subject: [PATCH] Rimossa la pericolosissima delete _cur; Questa cosa la fa automaticamente la TPrint_application nella propria destroy(). git-svn-id: svn://10.65.10.50/trunk@3063 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- cg/cg1700.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/cg/cg1700.cpp b/cg/cg1700.cpp index 4049cd488..620932b12 100755 --- a/cg/cg1700.cpp +++ b/cg/cg1700.cpp @@ -22,7 +22,6 @@ class CG1700_application : public TPrintapp { TRelation * _rel; TLocalisamfile * _clifo, * _pcon, * _nditte, * _anag, * _com; - TCursor * _cur; TMask * _msk; TParagraph_string * _descr_causale, * _descr_conto; TDate _data; @@ -279,8 +278,7 @@ bool CG1700_application::user_create() _rel = new TRelation (LF_CAUSALI); _rel->add(LF_RCAUSALI,"CODCAUS==CODCAUS",1); - _cur = new TCursor (_rel,"", 1); - add_cursor(_cur); + add_cursor(new TCursor (_rel,"", 1)); _com = new TLocalisamfile(LF_COMUNI); _pcon = new TLocalisamfile(LF_PCON); @@ -298,7 +296,6 @@ bool CG1700_application::user_create() bool CG1700_application::user_destroy() { delete _msk; - delete _cur; delete _rel; delete _clifo; delete _com;