Bug 277467: Memory leak in nsLookAndFeel::GetMetric. patch by Asaf Romano <bugs.mano@mail-central.com>, r=joshmoz, sr=sfraser, a=asa.

This commit is contained in:
smontagu%smontagu.org 2005-01-09 14:07:24 +00:00
Родитель 7a79475cb5
Коммит aade2a857f
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -550,6 +550,8 @@ NS_IMETHODIMP nsLookAndFeel::GetMetric(const nsMetricID aID, PRInt32 & aMetric)
aMetric = 7; // everything that can be focused
else
aMetric = 1; // Textboxes
::CFRelease(fullKeyboardAccessProperty);
}
else // By default, "Full keyboard accees" preference is off
aMetric = 1;