diff options
author | bertrand <Bertrand.Guiheneuf@aful.org> | 1999-08-11 18:59:17 +0800 |
---|---|---|
committer | Bertrand Guiheneuf <bertrand@src.gnome.org> | 1999-08-11 18:59:17 +0800 |
commit | 33ffe9aadcef483a4900cc65fc9e840220951e3c (patch) | |
tree | dda45ce6ecb34bc2a2dc6a342dd526f95e072da6 /camel/camel-service.c | |
parent | 9d041c9464b7e13cce7368e644781971d9ad5501 (diff) | |
download | gsoc2013-evolution-33ffe9aadcef483a4900cc65fc9e840220951e3c.tar gsoc2013-evolution-33ffe9aadcef483a4900cc65fc9e840220951e3c.tar.gz gsoc2013-evolution-33ffe9aadcef483a4900cc65fc9e840220951e3c.tar.bz2 gsoc2013-evolution-33ffe9aadcef483a4900cc65fc9e840220951e3c.tar.lz gsoc2013-evolution-33ffe9aadcef483a4900cc65fc9e840220951e3c.tar.xz gsoc2013-evolution-33ffe9aadcef483a4900cc65fc9e840220951e3c.tar.zst gsoc2013-evolution-33ffe9aadcef483a4900cc65fc9e840220951e3c.zip |
Message creation still consumes a lot of
memory (maybe 2000k) and I really don't
understand why. As soon as I get gtk working
on SunOS, purify should hopefully give me the answer.
1999-08-11 bertrand <Bertrand.Guiheneuf@aful.org>
* camel/camel-service.c (_finalize):
* camel/camel-stream-fs.c (_finalize):
(_destroy): close file descriptor.
* camel/camel-stream-mem.c (_finalize):
* camel/camel-store.c (_finalize):
* camel/camel-folder.c (_finalize):
svn path=/trunk/; revision=1104
Diffstat (limited to 'camel/camel-service.c')
-rw-r--r-- | camel/camel-service.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/camel/camel-service.c b/camel/camel-service.c index 0a27eb78fe..cdbb679dd0 100644 --- a/camel/camel-service.c +++ b/camel/camel-service.c @@ -22,6 +22,7 @@ */ #include <config.h> #include "camel-service.h" +#include "camel-log.h" static GtkObjectClass *parent_class=NULL; @@ -34,10 +35,13 @@ static void _connect_to_with_login_passwd_port (CamelService *service, gchar *ho static gboolean _is_connected (CamelService *service); static void _set_connected (CamelService *service, gboolean state); static const gchar *_get_url (CamelService *service); +static void _finalize (GtkObject *object); static void camel_service_class_init (CamelServiceClass *camel_service_class) { + GtkObjectClass *gtk_object_class = GTK_OBJECT_CLASS (camel_service_class); + parent_class = gtk_type_class (gtk_object_get_type ()); /* virtual method definition */ @@ -49,6 +53,7 @@ camel_service_class_init (CamelServiceClass *camel_service_class) camel_service_class->get_url = _get_url; /* virtual method overload */ + gtk_object_class->finalize = _finalize; } @@ -82,6 +87,18 @@ camel_service_get_type (void) } +static void +_finalize (GtkObject *object) +{ + CamelService *camel_service = CAMEL_SERVICE (object); + + CAMEL_LOG_FULL_DEBUG ("Entering CamelService::finalize\n"); + + if (camel_service->url) g_free (camel_service->url); + + GTK_OBJECT_CLASS (parent_class)->finalize (object); + CAMEL_LOG_FULL_DEBUG ("Leaving CamelService::finalize\n"); +} |