Mercurial > pub > Impl
comparison Lib/IMPL/Web/View/TTControl.pm @ 307:2da2564f115d
*TTView: fixed memory leak
author | cin |
---|---|
date | Thu, 18 Apr 2013 02:21:28 +0400 |
parents | 673581380e79 |
children | 109f28643025 |
comparison
equal
deleted
inserted
replaced
306:d4caf951260d | 307:2da2564f115d |
---|---|
44 | 44 |
45 if(ref($attrs) eq 'HASH') { | 45 if(ref($attrs) eq 'HASH') { |
46 while (my($key,$value) = each %$attrs) { | 46 while (my($key,$value) = each %$attrs) { |
47 $this->SetAttribute($key,$value); | 47 $this->SetAttribute($key,$value); |
48 } | 48 } |
49 } | 49 } |
50 | 50 |
51 $this->id(_GetNextId()) unless $this->id; | 51 $this->id(_GetNextId()) unless $this->id; |
52 } | 52 } |
53 | 53 |
54 sub GetAttribute { | 54 sub GetAttribute { |