tracker r2346 - in trunk: . src/trackerd
- From: carlosg svn gnome org
- To: svn-commits-list gnome org
- Subject: tracker r2346 - in trunk: . src/trackerd
- Date: Thu, 9 Oct 2008 13:31:23 +0000 (UTC)
Author: carlosg
Date: Thu Oct 9 13:31:23 2008
New Revision: 2346
URL: http://svn.gnome.org/viewvc/tracker?rev=2346&view=rev
Log:
2008-10-09 Carlos Garnacho <carlos imendio com>
* src/trackerd/tracker-monitor.c (get_module_name_from_gfile): Plug a
leak.
Modified:
trunk/ChangeLog
trunk/src/trackerd/tracker-monitor.c
Modified: trunk/src/trackerd/tracker-monitor.c
==============================================================================
--- trunk/src/trackerd/tracker-monitor.c (original)
+++ trunk/src/trackerd/tracker-monitor.c Thu Oct 9 13:31:23 2008
@@ -558,7 +558,22 @@
* name of the file.
*/
parent = g_file_get_parent (file);
+
+ if (!parent) {
+ gchar *path;
+
+ path = g_file_get_path (file);
+
+ g_warning ("Could not get module name from GFile (path:'%s')",
+ path);
+
+ g_free (path);
+
+ return NULL;
+ }
+
module_name = get_queue_from_gfile (monitor->private->modules, parent);
+ g_object_unref (parent);
if (!module_name) {
gchar *child_path;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]