gnome-utils r8365 - trunk/logview
- From: cosimoc svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-utils r8365 - trunk/logview
- Date: Sat, 27 Dec 2008 23:09:08 +0000 (UTC)
Author: cosimoc
Date: Sat Dec 27 23:09:08 2008
New Revision: 8365
URL: http://svn.gnome.org/viewvc/gnome-utils?rev=8365&view=rev
Log:
2008-12-28 Cosimo Cecchi <cosimoc gnome org>
* logview-manager.c (create_log_cb): remove the use of an unallocated
pointer, which would lead to segfaults.
Patch by Frederic Peters (#565827).
Modified:
trunk/logview/ChangeLog
trunk/logview/logview-manager.c
Modified: trunk/logview/logview-manager.c
==============================================================================
--- trunk/logview/logview-manager.c (original)
+++ trunk/logview/logview-manager.c Sat Dec 27 23:09:08 2008
@@ -178,7 +178,7 @@
logview_manager_set_active_log (data->manager, log);
}
} else {
- char *path, *primary;
+ char *path;
/* notify the error */
path = g_file_get_path (data->file);
@@ -197,7 +197,6 @@
}
g_free (path);
- g_free (primary);
}
if (data->is_multiple) {
@@ -409,4 +408,4 @@
g_assert (LOGVIEW_IS_MANAGER (manager));
return (manager->priv->active_log == log);
-}
\ No newline at end of file
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]