From 5aa38fe3cd9385eb10af16b9cb714eb759b886ef Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Fri, 10 Jan 2025 18:28:22 +0100 Subject: [PATCH] Update OpenDDLParser.cpp (#5953) --- contrib/openddlparser/code/OpenDDLParser.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/openddlparser/code/OpenDDLParser.cpp b/contrib/openddlparser/code/OpenDDLParser.cpp index 26591b5ec..75a7a223e 100644 --- a/contrib/openddlparser/code/OpenDDLParser.cpp +++ b/contrib/openddlparser/code/OpenDDLParser.cpp @@ -1,7 +1,7 @@ /*----------------------------------------------------------------------------------------------- The MIT License (MIT) -Copyright (c) 2014-2020 Kim Kulling +Copyright (c) 2014-2025 Kim Kulling Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in @@ -289,8 +289,8 @@ char *OpenDDLParser::parseHeader(char *in, char *end) { if (nullptr != name && nullptr != node && nullptr != name->m_id->m_buffer) { const std::string nodeName(name->m_id->m_buffer); node->setName(nodeName); - delete name; } + delete name; Property *first(nullptr); in = lookForNextToken(in, end);