فهرست منبع

Update OpenDDLParser.cpp (#5953)

Kim Kulling 8 ماه پیش
والد
کامیت
5aa38fe3cd
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      contrib/openddlparser/code/OpenDDLParser.cpp

+ 2 - 2
contrib/openddlparser/code/OpenDDLParser.cpp

@@ -1,7 +1,7 @@
 /*-----------------------------------------------------------------------------------------------
 /*-----------------------------------------------------------------------------------------------
 The MIT License (MIT)
 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
 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
 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) {
         if (nullptr != name && nullptr != node && nullptr != name->m_id->m_buffer) {
             const std::string nodeName(name->m_id->m_buffer);
             const std::string nodeName(name->m_id->m_buffer);
             node->setName(nodeName);
             node->setName(nodeName);
-            delete name;
         }
         }
+        delete name;
 
 
         Property *first(nullptr);
         Property *first(nullptr);
         in = lookForNextToken(in, end);
         in = lookForNextToken(in, end);