aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@it.gnome.org>2003-06-13 03:02:50 +0800
committerMarco Pesenti Gritti <mpeseng@src.gnome.org>2003-06-13 03:02:50 +0800
commitc86e7ace9cc6a3a701fc19c5183c5c6256694abf (patch)
treebb62f95881e95d18c124173708bdbe7a9c178a1a
parenta11a0f4c48ebdcde5df388237d02d9154d6d82d2 (diff)
downloadgsoc2013-epiphany-c86e7ace9cc6a3a701fc19c5183c5c6256694abf.tar
gsoc2013-epiphany-c86e7ace9cc6a3a701fc19c5183c5c6256694abf.tar.gz
gsoc2013-epiphany-c86e7ace9cc6a3a701fc19c5183c5c6256694abf.tar.bz2
gsoc2013-epiphany-c86e7ace9cc6a3a701fc19c5183c5c6256694abf.tar.lz
gsoc2013-epiphany-c86e7ace9cc6a3a701fc19c5183c5c6256694abf.tar.xz
gsoc2013-epiphany-c86e7ace9cc6a3a701fc19c5183c5c6256694abf.tar.zst
gsoc2013-epiphany-c86e7ace9cc6a3a701fc19c5183c5c6256694abf.zip
Do not use c++ new to allocate priv struct of the object
2003-06-12 Marco Pesenti Gritti <marco@it.gnome.org> * embed/mozilla/mozilla-embed.cpp: Do not use c++ new to allocate priv struct of the object
-rw-r--r--ChangeLog6
-rw-r--r--embed/mozilla/mozilla-embed.cpp2
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index a772fd54e..d26a4fc95 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2003-06-12 Marco Pesenti Gritti <marco@it.gnome.org>
+ * embed/mozilla/mozilla-embed.cpp:
+
+ Do not use c++ new to allocate priv struct of the object
+
+2003-06-12 Marco Pesenti Gritti <marco@it.gnome.org>
+
* src/bookmarks/ephy-bookmark-action.c: (activate_cb):
s/scheme/host for the smartbookmarks
diff --git a/embed/mozilla/mozilla-embed.cpp b/embed/mozilla/mozilla-embed.cpp
index 20728a695..ab40ccee3 100644
--- a/embed/mozilla/mozilla-embed.cpp
+++ b/embed/mozilla/mozilla-embed.cpp
@@ -349,7 +349,7 @@ mozilla_embed_class_init (MozillaEmbedClass *klass)
static void
mozilla_embed_init (MozillaEmbed *embed)
{
- embed->priv = new MozillaEmbedPrivate;
+ embed->priv = g_new0 (MozillaEmbedPrivate, 1);
mozilla_embed_connect_signals (embed);
}