summaryrefslogtreecommitdiff
path: root/daemon/gvfsbackendtrash.c
diff options
context:
space:
mode:
authorRyan Lortie <desrt@desrt.ca>2009-01-20 17:11:11 +0000
committerRyan Lortie <ryanl@src.gnome.org>2009-01-20 17:11:11 +0000
commitd714824e4d661a6da592d516937ba7211609262c (patch)
treee092a94e8544f6622f192375918c0bad2e9a21e4 /daemon/gvfsbackendtrash.c
parent137d75a31ed6c90539a59532064eefbe3f44af53 (diff)
downloadgvfs-d714824e4d661a6da592d516937ba7211609262c.tar.gz
nail a couple of leaks
2009-01-20 Ryan Lortie <desrt@desrt.ca> * daemon/gvfsbackendtrash.c: nail a couple of leaks svn path=/trunk/; revision=2175
Diffstat (limited to 'daemon/gvfsbackendtrash.c')
-rw-r--r--daemon/gvfsbackendtrash.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/daemon/gvfsbackendtrash.c b/daemon/gvfsbackendtrash.c
index d6ee5d65..532ddf06 100644
--- a/daemon/gvfsbackendtrash.c
+++ b/daemon/gvfsbackendtrash.c
@@ -242,6 +242,7 @@ trash_backend_open_for_read (GVfsBackend *vfs_backend,
GFileInputStream *stream;
stream = g_file_read (real, NULL, &error);
+ g_object_unref (real);
if (stream)
{
@@ -320,6 +321,7 @@ trash_backend_close_read (GVfsBackend *backend,
if (g_input_stream_close (handle, NULL, &error))
{
g_vfs_job_succeeded (G_VFS_JOB (job));
+ g_object_unref (handle);
return TRUE;
}