diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2003-06-15 17:41:08 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2003-06-15 17:41:08 +0800 |
commit | 70c9516fd0741ecd185196f33dcd9c7ad63d69fb (patch) | |
tree | efa170d3b90c8b60d093970725d84277560638e9 | |
parent | 94a825c3865eacb771b64dd93ea7b0dff3c9db49 (diff) | |
download | gsoc2013-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.
-rw-r--r-- | ChangeLog | 9 | ||||
-rw-r--r-- | embed/mozilla/EventContext.cpp | 6 | ||||
-rw-r--r-- | embed/mozilla/mozilla-embed-single.cpp | 3 |
3 files changed, 15 insertions, 3 deletions
@@ -1,5 +1,14 @@ 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. + +2003-06-15 Christian Persch <chpe@cvs.gnome.org> + * embed/find-dialog.h: * embed/find-dialog.c: (set_navigation_flags), (ephy_find_dialog_get_property), (find_dialog_class_init), 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; |