aboutsummaryrefslogtreecommitdiffstats
path: root/embed
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2003-12-06 07:12:37 +0800
committerChristian Persch <chpe@src.gnome.org>2003-12-06 07:12:37 +0800
commit1693c8d0d91d65d6ece605be97cfa739da260d58 (patch)
treec28b778dc3f25a9673c2aab82dff54c38b562817 /embed
parent7e8b35f93d2ef0f08fdf6b9ef889fb913091a61f (diff)
downloadgsoc2013-epiphany-1693c8d0d91d65d6ece605be97cfa739da260d58.tar
gsoc2013-epiphany-1693c8d0d91d65d6ece605be97cfa739da260d58.tar.gz
gsoc2013-epiphany-1693c8d0d91d65d6ece605be97cfa739da260d58.tar.bz2
gsoc2013-epiphany-1693c8d0d91d65d6ece605be97cfa739da260d58.tar.lz
gsoc2013-epiphany-1693c8d0d91d65d6ece605be97cfa739da260d58.tar.xz
gsoc2013-epiphany-1693c8d0d91d65d6ece605be97cfa739da260d58.tar.zst
gsoc2013-epiphany-1693c8d0d91d65d6ece605be97cfa739da260d58.zip
Fix a mem leak (ported from galeon).
2003-12-06 Christian Persch <chpe@cvs.gnome.org> * embed/mozilla/mozilla-embed-single.cpp: Fix a mem leak (ported from galeon).
Diffstat (limited to 'embed')
-rw-r--r--embed/mozilla/mozilla-embed-single.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/embed/mozilla/mozilla-embed-single.cpp b/embed/mozilla/mozilla-embed-single.cpp
index 63fce2f09..b6c0a22f2 100644
--- a/embed/mozilla/mozilla-embed-single.cpp
+++ b/embed/mozilla/mozilla-embed-single.cpp
@@ -390,7 +390,7 @@ getUILang (nsAString& aUILang)
#else
nsXPIDLString uiLang;
result = localeService->GetLocaleComponentForUserAgent (getter_Copies(uiLang));
- aUILang = uiLang;
+ aUILang.Assign (uiLang);
#endif
if (NS_FAILED (result))