/* add a capture filter coming from the user's recent file to the cfilter combo box */ gboolean cfilter_combo_add_recent(const gchar *s) { gchar *dupstr; if (s) { dupstr = g_strdup(s); if (!cfilter_combo_add(dupstr)) { g_free(dupstr); return FALSE; } } return TRUE; }
/* add a capture filter coming from the user's recent file to the cfilter combo box */ gboolean cfilter_combo_add_recent(gchar *s) { gchar *dup; if (s) { dup = g_strdup(s); if (!cfilter_combo_add(dup)) { g_free(dup); return FALSE; } } return TRUE; }