[tracker/class-signal] tracker-writeback: Fix memory leak in XMP writeback module



commit 1aa6e23d6210207bd276475103049fc98b42f1fc
Author: Philip Van Hoof <philip codeminded be>
Date:   Mon Aug 23 18:02:08 2010 +0200

    tracker-writeback: Fix memory leak in XMP writeback module

 src/tracker-writeback/tracker-writeback-xmp.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/tracker-writeback/tracker-writeback-xmp.c b/src/tracker-writeback/tracker-writeback-xmp.c
index 0b87291..a4ab962 100644
--- a/src/tracker-writeback/tracker-writeback-xmp.c
+++ b/src/tracker-writeback/tracker-writeback-xmp.c
@@ -170,6 +170,7 @@ writeback_xmp_update_file_metadata (TrackerWritebackFile    *wbf,
 					                  0);
 				}
 			}
+			g_object_unref (cursor);
 			g_clear_error (&error);
 		}
 
@@ -190,6 +191,7 @@ writeback_xmp_update_file_metadata (TrackerWritebackFile    *wbf,
 					xmp_set_property (xmp, NS_DC, "contributor", tracker_sparql_cursor_get_string (cursor, 0, NULL), 0);
 				}
 			}
+			g_object_unref (cursor);
 			g_clear_error (&error);
 		}
 
@@ -237,6 +239,7 @@ writeback_xmp_update_file_metadata (TrackerWritebackFile    *wbf,
 					}
 				}
 			}
+			g_object_unref (cursor);
 			g_clear_error (&error);
 		}
 
@@ -446,6 +449,7 @@ writeback_xmp_update_file_metadata (TrackerWritebackFile    *wbf,
 				}
 			}
 
+			g_object_unref (cursor);
 			g_clear_error (&error);
 		}
 



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