aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dfilter
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2010-08-30 09:31:52 +0000
committerStig Bjørlykke <stig@bjorlykke.org>2010-08-30 09:31:52 +0000
commit4382dcffad1ec953a2fa8e02923a192ae834a1a8 (patch)
treec28708a0e3c9df2bea4c9d94398c3c4135c9e848 /epan/dfilter
parent835a43312ffde4aebf66de058c91eac9ab9ab27c (diff)
Call dfilter_macro_uat->post_update_cb instead of using cfile.
svn path=/trunk/; revision=34012
Diffstat (limited to 'epan/dfilter')
-rw-r--r--epan/dfilter/dfilter-macro.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/epan/dfilter/dfilter-macro.c b/epan/dfilter/dfilter-macro.c
index 07fe509aac..5b5a4aed99 100644
--- a/epan/dfilter/dfilter-macro.c
+++ b/epan/dfilter/dfilter-macro.c
@@ -31,12 +31,11 @@
#include <ctype.h>
#include <string.h>
-#include "globals.h"
#include "dfilter-int.h"
#include "dfilter.h"
#include "dfilter-macro.h"
#include <epan/emem.h>
-#include <epan/uat.h>
+#include <epan/uat-int.h>
#include <epan/report_err.h>
#include <epan/proto.h>
#include <wsutil/file_util.h>
@@ -412,8 +411,8 @@ static void macro_update(void* mp, const gchar** error) {
}
/* Invalidate the display filter in case it's in use */
- g_free (cfile.dfilter);
- cfile.dfilter = NULL;
+ if (dfilter_macro_uat && dfilter_macro_uat->post_update_cb)
+ dfilter_macro_uat->post_update_cb();
parts = g_ptr_array_new();
args_pos = g_array_new(FALSE,FALSE,sizeof(int));