[gnome-utils] [gsearchtool] Minor logic fix
- From: Dennis Cranston <dcransto src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-utils] [gsearchtool] Minor logic fix
- Date: Tue, 28 Apr 2009 00:03:36 -0400 (EDT)
commit 54fe8118ffb6f2be0675f947e765ad3e25e600ae
Author: Dennis Cranston <Dennis_Cranston yahoo com>
Date: Mon Apr 27 20:57:28 2009 -0700
[gsearchtool] Minor logic fix
gsearchtool-support.c (compare_regex): Move regfree() inside if condition.
---
gsearchtool/ChangeLog | 8 ++++++++
gsearchtool/gsearchtool-support.c | 2 +-
2 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/gsearchtool/ChangeLog b/gsearchtool/ChangeLog
index 28b3fbe..17dbdb4 100644
--- a/gsearchtool/ChangeLog
+++ b/gsearchtool/ChangeLog
@@ -1,3 +1,11 @@
+2009-04-27 Dennis Cranston <dennis_cranston yahoo com>
+
+ * gsearchtool-support.c (compare_regex): Minor logic fix.
+
+ NOTE: Git is usability nightmare. I fear the number
+ of GNOME volunteers will decrease as a result of this version
+ control change, but I hope I am wrong.
+
2009-04-26 Dennis Cranston <dennis_cranston yahoo com>
* gsearchtool-support.c (compare_regex): Fix memory leak.
diff --git a/gsearchtool/gsearchtool-support.c b/gsearchtool/gsearchtool-support.c
index dcc8d2a..03d7185 100644
--- a/gsearchtool/gsearchtool-support.c
+++ b/gsearchtool/gsearchtool-support.c
@@ -503,8 +503,8 @@ compare_regex (const gchar * regex,
regfree (®exec_pattern);
return TRUE;
}
+ regfree (®exec_pattern);
}
- regfree (®exec_pattern);
return FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]