aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/mozilla-download.cpp
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-03-04 03:06:24 +0800
committerChristian Persch <chpe@src.gnome.org>2004-03-04 03:06:24 +0800
commitade55d6a9658567dcefb18fc0d536a7e3eed0c8c (patch)
tree02f3c16b703458b4e20446339f45f5e3061c2913 /embed/mozilla/mozilla-download.cpp
parentb96b5b6cf8faac19449cf6800f72ce1e610a69ea (diff)
downloadgsoc2013-epiphany-ade55d6a9658567dcefb18fc0d536a7e3eed0c8c.tar
gsoc2013-epiphany-ade55d6a9658567dcefb18fc0d536a7e3eed0c8c.tar.gz
gsoc2013-epiphany-ade55d6a9658567dcefb18fc0d536a7e3eed0c8c.tar.bz2
gsoc2013-epiphany-ade55d6a9658567dcefb18fc0d536a7e3eed0c8c.tar.lz
gsoc2013-epiphany-ade55d6a9658567dcefb18fc0d536a7e3eed0c8c.tar.xz
gsoc2013-epiphany-ade55d6a9658567dcefb18fc0d536a7e3eed0c8c.tar.zst
gsoc2013-epiphany-ade55d6a9658567dcefb18fc0d536a7e3eed0c8c.zip
Unset the GValue after we're done using what it contained.
2004-03-03 Christian Persch <chpe@cvs.gnome.org> * embed/downloader-view.c: (download_dialog_pause_cb), (download_dialog_abort_cb): Unset the GValue after we're done using what it contained. * embed/mozilla/MozDownload.cpp: Weak ref mEphyDownload, and assert that is has been finalised by the time we get to ~MozDownload. * embed/mozilla/mozilla-download.cpp: Debug output in _init and _finalize.
Diffstat (limited to 'embed/mozilla/mozilla-download.cpp')
-rw-r--r--embed/mozilla/mozilla-download.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/embed/mozilla/mozilla-download.cpp b/embed/mozilla/mozilla-download.cpp
index 71ed74874..8405ba29d 100644
--- a/embed/mozilla/mozilla-download.cpp
+++ b/embed/mozilla/mozilla-download.cpp
@@ -24,6 +24,8 @@
#include "mozilla-download.h"
+#include "ephy-debug.h"
+
#include "nsString.h"
static void
@@ -198,6 +200,8 @@ mozilla_download_finalize (GObject *object)
NS_RELEASE (download->priv->moz_download);
+ LOG ("MozillaDownload %p finalised", object)
+
G_OBJECT_CLASS (parent_class)->finalize (object);
}
@@ -273,6 +277,8 @@ mozilla_download_class_init (MozillaDownloadClass *klass)
static void
mozilla_download_init (MozillaDownload *download)
{
+ LOG ("MozillaDownload %p initialising", download)
+
download->priv = MOZILLA_DOWNLOAD_GET_PRIVATE (download);
}