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
This commit is contained in:
		
							parent
							
								
									4c7c4632f8
								
							
						
					
					
						commit
						dbc8fbc90a
					
				@ -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;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user