* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "libsigrok.h"
+#include <config.h>
+#include <libsigrok/libsigrok.h>
#include "libsigrok-internal.h"
-/* * @cond PRIVATE */
+/** @cond PRIVATE */
#define LOG_PREFIX "trigger"
-/* * @endcond */
-
+/** @endcond */
+
/**
* @file
*
for (l = trig->stages; l; l = l->next) {
stage = l->data;
- g_slist_free_full(stage->matches, g_free);
+
+ if (stage->matches)
+ g_slist_free_full(stage->matches, g_free);
}
g_slist_free_full(trig->stages, g_free);