aboutsummaryrefslogtreecommitdiffstats
path: root/embed
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
parent94a825c3865eacb771b64dd93ea7b0dff3c9db49 (diff)
downloadgsoc2013-epiphany-70c9516fd0741ecd185196f33dcd9c7ad63d69fb.tar.gz
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')
-rw-r--r--embed/mozilla/EventContext.cpp6
-rw-r--r--embed/mozilla/mozilla-embed-single.cpp3
2 files changed, 6 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);
diff --git a/embed/mozilla/mozilla-embed-single.cpp b/embed/mozilla/mozilla-embed-single.cpp
index fa67a9ea3..8cc2413da 100644
--- a/embed/mozilla/mozilla-embed-single.cpp
+++ b/embed/mozilla/mozilla-embed-single.cpp
@@ -808,6 +808,9 @@ control_encodings_list (void)
encoding_str, encoding_title_str);
ret = G_FAILED;
}
+
+ g_free (encoding_str);
+ g_free (encoding_title_str);
}
return ret;