aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/EventContext.cpp
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2003-06-15 17:41:08 +0800
committerChristian Persch <chpe@src.gnome.org>2003-06-15 17:41:08 +0800
commit70c9516fd0741ecd185196f33dcd9c7ad63d69fb (patch)
treeefa170d3b90c8b60d093970725d84277560638e9 /embed/mozilla/EventContext.cpp
parent94a825c3865eacb771b64dd93ea7b0dff3c9db49 (diff)
downloadgsoc2013-epiphany-70c9516fd0741ecd185196f33dcd9c7ad63d69fb.tar
gsoc2013-epiphany-70c9516fd0741ecd185196f33dcd9c7ad63d69fb.tar.gz
gsoc2013-epiphany-70c9516fd0741ecd185196f33dcd9c7ad63d69fb.tar.bz2
gsoc2013-epiphany-70c9516fd0741ecd185196f33dcd9c7ad63d69fb.tar.lz
gsoc2013-epiphany-70c9516fd0741ecd185196f33dcd9c7ad63d69fb.tar.xz
gsoc2013-epiphany-70c9516fd0741ecd185196f33dcd9c7ad63d69fb.tar.zst
gsoc2013-epiphany-70c9516fd0741ecd185196f33dcd9c7ad63d69fb.zip
), (EventContext::SetStringProperty (const char*, const nsACString&)):
2003-06-15 Christian Persch <chpe@cvs.gnome.org> * embed/mozilla/mozilla-embed-single: (control_encodings_list): * embed/mozilla/EventContext.cpp: (EventContext::SetIntProperty), (EventContext::SetStringProperty (const char*, const char*)), (EventContext::SetStringProperty (const char*, const nsACString&)): Fix mem leaks.
Diffstat (limited to 'embed/mozilla/EventContext.cpp')
-rw-r--r--embed/mozilla/EventContext.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/embed/mozilla/EventContext.cpp b/embed/mozilla/EventContext.cpp
index 7e07e757b..e549d9378 100644
--- a/embed/mozilla/EventContext.cpp
+++ b/embed/mozilla/EventContext.cpp
@@ -629,7 +629,7 @@ nsresult EventContext::SetIntProperty (const char *name, int value)
g_value_set_int (val, value);
ephy_embed_event_set_property (mEmbedEvent,
- g_strdup (name),
+ name,
val);
return NS_OK;
@@ -644,7 +644,7 @@ nsresult EventContext::SetStringProperty (const char *name, const char *value)
g_value_set_string (val, value);
ephy_embed_event_set_property (mEmbedEvent,
- g_strdup (name),
+ name,
val);
return NS_OK;
@@ -662,7 +662,7 @@ nsresult EventContext::SetStringProperty (const char *name, const nsAString &val
g_value_set_string (val, tmp);
ephy_embed_event_set_property (mEmbedEvent,
- g_strdup (name),
+ name,
val);
nsMemory::Free (tmp);