mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-08 06:53:45 +00:00
ICU-3259 Fix a memory leak
X-SVN-Rev: 13894
This commit is contained in:
parent
1a3807289a
commit
0b4240125e
1 changed files with 8 additions and 0 deletions
|
@ -354,6 +354,12 @@ void AstroTest::TestSunriseTimes(void) {
|
|||
// a.setDate(cal.getTime());
|
||||
// long r = a.getSunRiseSet2(true);
|
||||
delete astro3;
|
||||
delete tz;
|
||||
delete cal;
|
||||
delete cal2;
|
||||
delete df_t;
|
||||
delete df_d;
|
||||
delete df_dt;
|
||||
closeAstro(status);
|
||||
ASSERT_OK(status);
|
||||
}
|
||||
|
@ -409,6 +415,8 @@ void AstroTest::TestBasics(void) {
|
|||
// astro.setDate(cal3.getTime());
|
||||
// astro.foo();
|
||||
|
||||
delete cal3;
|
||||
delete d3;
|
||||
ASSERT_OK(status);
|
||||
closeAstro(status);
|
||||
ASSERT_OK(status);
|
||||
|
|
Loading…
Add table
Reference in a new issue