aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla
diff options
context:
space:
mode:
Diffstat (limited to 'embed/mozilla')
-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;