summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2012-03-20 11:22:19 +0100
committerStephan Bergmann <sbergman@redhat.com>2012-03-20 11:23:55 +0100
commit7b9ea611bea133e758302b99df339439919101ed (patch)
tree685f179e29a86e166f5b05be4b035f5fced212af /desktop
parent9f6e09e241921c6c4260ab530374de8d5ccd4267 (diff)
Resolves rhbz#804437, do not rtl_uString_release(NULL)
...in case osl_getProcessWorkingDir fails (e.g., if it has been unlinked).
Diffstat (limited to 'desktop')
-rw-r--r--desktop/unx/source/start.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/desktop/unx/source/start.c b/desktop/unx/source/start.c
index f2c6e58db7a1..410c2fd7700f 100644
--- a/desktop/unx/source/start.c
+++ b/desktop/unx/source/start.c
@@ -358,7 +358,10 @@ get_pipe_path( rtl_uString *pAppPath )
rtl_uString_release( pMd5hash );
rtl_uString_release( pPath );
rtl_uString_release( pTmp );
- rtl_uString_release( pBasePath );
+ if ( pBasePath )
+ {
+ rtl_uString_release( pBasePath );
+ }
rtl_uString_release( pUserInstallation );
rtl_uString_release( pAbsUserInstallation );