Call dfilter_macro_uat->post_update_cb instead of using cfile.
authorstig <stig@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 30 Aug 2010 09:31:52 +0000 (09:31 +0000)
committerstig <stig@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 30 Aug 2010 09:31:52 +0000 (09:31 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@34012 f5534014-38df-0310-8fa8-9805f1628bb7

epan/dfilter/dfilter-macro.c

index 07fe509aac69963724d6c6e2be085edd26ef84b9..5b5a4aed993474026e182610c5e6548bf35e23ed 100644 (file)
 #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));