gnome-utils r8296 - trunk/logview



Author: cosimoc
Date: Tue Dec 23 13:27:38 2008
New Revision: 8296
URL: http://svn.gnome.org/viewvc/gnome-utils?rev=8296&view=rev

Log:
Fix some errors and leaks reported by Valgrind. Also, add the file name
in logview-loglist.[ch] headers.

Modified:
   trunk/logview/logview-loglist.c
   trunk/logview/logview-loglist.h
   trunk/logview/logview-utils.c

Modified: trunk/logview/logview-loglist.c
==============================================================================
--- trunk/logview/logview-loglist.c	(original)
+++ trunk/logview/logview-loglist.c	Tue Dec 23 13:27:38 2008
@@ -1,4 +1,5 @@
-/*
+/* logview-loglist.c
+ *
  * Copyright (C) 2005 Vincent Noel <vnoel cox net>
  * Copyright (C) 2008 Cosimo Cecchi <cosimoc gnome org>
  *
@@ -403,4 +404,6 @@
   days = logview_log_get_days_for_cached_lines (log);
   parent = logview_loglist_find_log (loglist, log);
   update_days_and_lines_for_log (loglist, parent, days);
+
+  gtk_tree_iter_free (parent);
 }

Modified: trunk/logview/logview-loglist.h
==============================================================================
--- trunk/logview/logview-loglist.h	(original)
+++ trunk/logview/logview-loglist.h	Tue Dec 23 13:27:38 2008
@@ -1,4 +1,5 @@
-/*
+/* logview-loglist.h
+ *
  * Copyright (C) 2005 Vincent Noel <vnoel cox net>
  * Copyright (C) 2008 Cosimo Cecchi <cosimoc gnome org>
  *

Modified: trunk/logview/logview-utils.c
==============================================================================
--- trunk/logview/logview-utils.c	(original)
+++ trunk/logview/logview-utils.c	Tue Dec 23 13:27:38 2008
@@ -52,7 +52,7 @@
 {
   GDate *date = NULL;
   struct tm tp;
-  char *cp;
+  char *cp = NULL;
   char tmp[50];
   size_t chars_read;
   



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