diff options
author | Dan Winship <danw@src.gnome.org> | 2000-09-08 05:00:56 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2000-09-08 05:00:56 +0800 |
commit | 38c738571309243bfcb82577c257ae0c571fbc15 (patch) | |
tree | 1d36890a5b9d09c19e984a7fdc31f4b4ac5cef5d /camel | |
parent | c8b89a700bd419f235c3e93041ed4eb638c2a2e3 (diff) | |
download | gsoc2013-evolution-38c738571309243bfcb82577c257ae0c571fbc15.tar gsoc2013-evolution-38c738571309243bfcb82577c257ae0c571fbc15.tar.gz gsoc2013-evolution-38c738571309243bfcb82577c257ae0c571fbc15.tar.bz2 gsoc2013-evolution-38c738571309243bfcb82577c257ae0c571fbc15.tar.lz gsoc2013-evolution-38c738571309243bfcb82577c257ae0c571fbc15.tar.xz gsoc2013-evolution-38c738571309243bfcb82577c257ae0c571fbc15.tar.zst gsoc2013-evolution-38c738571309243bfcb82577c257ae0c571fbc15.zip |
Make this not leak.
* camel-session.c (camel_session_get_storage_path): Make this not
leak.
svn path=/trunk/; revision=5243
Diffstat (limited to 'camel')
-rw-r--r-- | camel/ChangeLog | 5 | ||||
-rw-r--r-- | camel/camel-session.c | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog index e4b0ea11ee..7eb2fc4ef9 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,5 +1,10 @@ 2000-09-07 Dan Winship <danw@helixcode.com> + * camel-session.c (camel_session_get_storage_path): Make this not + leak. + +2000-09-07 Dan Winship <danw@helixcode.com> + * camel-session.c (camel_session_new): Make this take a path to a directory that Camel can use for its own nefarious purposes. (camel_session_get_storage_path): New function to return a path diff --git a/camel/camel-session.c b/camel/camel-session.c index 81781fe85a..3e6630a9c8 100644 --- a/camel/camel-session.c +++ b/camel/camel-session.c @@ -347,8 +347,9 @@ camel_session_get_storage_path (CamelSession *session, CamelService *service, { char *path, *p; - path = g_strdup_printf ("%s/%s", session->storage_path, - camel_service_get_path (service)); + p = camel_service_get_path (service); + path = g_strdup_printf ("%s/%s", session->storage_path, p); + g_free (p); if (access (path, F_OK) == 0) return path; |