mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-18 13:13:31 +00:00
See ChangeLog
Monotone-Parent: 5c2f980ac5823528c17146f4e481573c34720bdd Monotone-Revision: 9c818b369358da0b25cfcd319b9f6f2d319fb99d Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2009-03-25T14:38:19 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
2009-03-25 Francis Lachapelle <flachapelle@inverse.ca>
|
||||
|
||||
* SoObjects/SOGo/SOGoUser.m ([SOGoUser -language]): must retain
|
||||
the ivar language to avoid a crash if the language is retrieved
|
||||
from the user agent header returned by the browser.
|
||||
|
||||
2009-03-24 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* UI/Scheduler/UIxComponentEditor.m ([UIxComponentEditor
|
||||
|
||||
@@ -280,6 +280,7 @@ _timeValue (NSString *key)
|
||||
[allEmails release];
|
||||
[currentPassword release];
|
||||
[cn release];
|
||||
[language release];
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
@@ -465,7 +466,7 @@ _timeValue (NSString *key)
|
||||
if (values)
|
||||
{
|
||||
// See explanation in -language
|
||||
language = nil;
|
||||
[self invalidateLanguage];
|
||||
|
||||
// Required parameters for the Web interface. This will trigger the
|
||||
// preferences to load so it's important to leave those calls here.
|
||||
@@ -522,7 +523,7 @@ _timeValue (NSString *key)
|
||||
if (values)
|
||||
{
|
||||
// See explanation in -language
|
||||
language = nil;
|
||||
[self invalidateLanguage];
|
||||
|
||||
// We propagate the loaded user settings to other sogod instances
|
||||
// which will cache them in SOGoCache (including for the instance
|
||||
@@ -550,7 +551,7 @@ _timeValue (NSString *key)
|
||||
|
||||
- (void) invalidateLanguage
|
||||
{
|
||||
language = nil;
|
||||
DESTROY(language);
|
||||
}
|
||||
|
||||
- (NSString *) language
|
||||
@@ -563,6 +564,8 @@ _timeValue (NSString *key)
|
||||
// many times when the DB is down, causing a huge delay.
|
||||
if (![language length])
|
||||
language = [SOGoUser language];
|
||||
|
||||
[language retain];
|
||||
}
|
||||
|
||||
return language;
|
||||
|
||||
Reference in New Issue
Block a user