tracker r1498 - in branches/xesam-support: . src/trackerd
- From: pvanhoof svn gnome org
- To: svn-commits-list gnome org
- Subject: tracker r1498 - in branches/xesam-support: . src/trackerd
- Date: Tue, 27 May 2008 10:49:13 +0000 (UTC)
Author: pvanhoof
Date: Tue May 27 10:49:13 2008
New Revision: 1498
URL: http://svn.gnome.org/viewvc/tracker?rev=1498&view=rev
Log:
2008-05-27 Philip Van Hoof <pvanhoof gnome org>
* src/trackerd/tracker-xesam-query.c: Memory corruption fix in
tracker_xesam_query_to_sql
Modified:
branches/xesam-support/ChangeLog
branches/xesam-support/src/trackerd/tracker-xesam-query.c
Modified: branches/xesam-support/src/trackerd/tracker-xesam-query.c
==============================================================================
--- branches/xesam-support/src/trackerd/tracker-xesam-query.c (original)
+++ branches/xesam-support/src/trackerd/tracker-xesam-query.c Tue May 27 10:49:13 2008
@@ -1288,6 +1288,14 @@
g_string_free (data.sql_from, TRUE);
g_string_free (data.sql_where, TRUE);
+
+ if (data.current_field) {
+ g_free (data.current_field);
+ }
+
+ if (data.current_value) {
+ g_free (data.current_value);
+ }
}
g_slist_foreach (data.fields, (GFunc) g_object_unref, NULL);
@@ -1296,13 +1304,7 @@
g_slist_free (data.stack);
g_markup_parse_context_free (data.context);
- if (data.current_field) {
- g_free (data.current_field);
- }
- if (data.current_value) {
- g_free (data.current_value);
- }
g_free (data.parser);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]