filter core:
authorsiboud <siboud@04897980-b3bd-0310-b5e0-8ef037075253>
Sat, 9 Apr 2005 21:48:08 +0000 (21:48 +0000)
committersiboud <siboud@04897980-b3bd-0310-b5e0-8ef037075253>
Sat, 9 Apr 2005 21:48:08 +0000 (21:48 +0000)
- fixed minor bug in memory desallocation (lttv_simple_expression_destroy())

git-svn-id: http://ltt.polymtl.ca/svn@922 04897980-b3bd-0310-b5e0-8ef037075253

ltt/branches/poly/doxyfile
ltt/branches/poly/lttv/lttv/filter.c

index b1f3cc70797810b8a11935caeef88a0298cbf09c..9aa6785ce665589c9f669156683093c5fa12b57e 100644 (file)
@@ -472,7 +472,7 @@ RECURSIVE              = YES
 # excluded from the INPUT source files. This way you can easily exclude a 
 # subdirectory from a directory tree whose root is specified with the INPUT tag.
 
-EXCLUDE                = ./lttv/modules/examples/
+EXCLUDE                = ./lttv/modules/examples/ 
 
 # The EXCLUDE_SYMLINKS tag can be used select whether or not files or 
 # directories that are symbolic links (a Unix filesystem feature) are excluded 
@@ -856,7 +856,7 @@ MAN_EXTENSION          = .3
 # only source the real man page, but without them the man command 
 # would be unable to find the correct page. The default is NO.
 
-MAN_LINKS              = NO
+MAN_LINKS              = NO 
 
 #---------------------------------------------------------------------------
 # configuration options related to the XML output
index db3ee1c8fa424a31072f4dc7b4ff1386ee20d48c..bed1b48978f495349ed42251fefffc4cc6237b8a 100644 (file)
@@ -421,14 +421,14 @@ void
 lttv_simple_expression_destroy(LttvSimpleExpression* se) {
   
  // g_free(se->value);
-  switch(se->field) {
-     case LTTV_FILTER_TRACE_NAME:
-     case LTTV_FILTER_TRACEFILE_NAME:
-     case LTTV_FILTER_STATE_P_NAME:
-     case LTTV_FILTER_EVENT_NAME:
-       g_free(se->value.v_string);
-       break;
-  }
+//  switch(se->field) {
+//     case LTTV_FILTER_TRACE_NAME:
+//     case LTTV_FILTER_TRACEFILE_NAME:
+//     case LTTV_FILTER_STATE_P_NAME:
+//     case LTTV_FILTER_EVENT_NAME:
+//       g_free(se->value.v_string);
+//       break;
+//  }
   g_free(se);
 
 }
@@ -1452,7 +1452,8 @@ gboolean lttv_filter_append_expression(LttvFilter* filter, const char *expressio
     g_string_append_c(s,'&');
   }
   g_string_append(s,expression);
-  
+  g_free(filter->expression);
   filter->expression = g_string_free(s,FALSE);
   
   /* TRUE if construction of tree proceeded without errors */
This page took 0.026236 seconds and 4 git commands to generate.