summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sal/osl/unx/file_url.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sal/osl/unx/file_url.cxx b/sal/osl/unx/file_url.cxx
index 304f8b4a5b93..6026660635db 100644
--- a/sal/osl/unx/file_url.cxx
+++ b/sal/osl/unx/file_url.cxx
@@ -283,7 +283,8 @@ oslFileError SAL_CALL osl_getSystemPathFromFileURL( rtl_uString *ustrFileURL, rt
OSL_ASSERT( !findWrongUsage( pTmp->buffer, pTmp->length ) );
*/
- *pustrSystemPath = pTmp;
+ rtl_uString_assign ( pustrSystemPath, pTmp );
+ rtl_uString_release ( pTmp );
return osl_File_E_None;
}