[rhythmbox] rhythmdb: don't leak GFiles when setting up file monitoring



commit 09735580dcf2d3e94134ea829ed86306da42209f
Author: Jonathan Matthew <jonathan d14n org>
Date:   Sun Feb 7 21:16:17 2010 +1000

    rhythmdb: don't leak GFiles when setting up file monitoring

 rhythmdb/rhythmdb-monitor.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/rhythmdb/rhythmdb-monitor.c b/rhythmdb/rhythmdb-monitor.c
index 602816d..5585278 100644
--- a/rhythmdb/rhythmdb-monitor.c
+++ b/rhythmdb/rhythmdb-monitor.c
@@ -378,6 +378,7 @@ rhythmdb_monitor_uri_path (RhythmDB *db, const char *uri, GError **error)
 	}
 
 	actually_add_monitor (db, directory, error);
+	g_object_unref (directory);
 }
 
 typedef struct



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]