Ticket #5294: libs_libmythui_xmlparsebase.cpp-use-after-free.patch

File libs_libmythui_xmlparsebase.cpp-use-after-free.patch, 735 bytes (added by Erik Hovland <erik@…>, 12 years ago)
  • libs/libmythui/xmlparsebase.cpp

    There is an instance where an object can be used after it has been
    
    From: Erik Hovland <erik@hovland.org>
    
    deleted.
    ---
    
     libs/libmythui/xmlparsebase.cpp |    1 +
     1 files changed, 1 insertions(+), 0 deletions(-)
    
    diff --git a/libs/libmythui/xmlparsebase.cpp b/libs/libmythui/xmlparsebase.cpp
    index 07bdd93..e9b1442 100644
    a b MythUIType *XMLParseBase::ParseUIType(QDomElement &element, const QString &type, 
    286286                                          "match old '%2'")
    287287                                         .arg(name).arg(inherits));
    288288            delete uitype;
     289            return NULL;
    289290        }
    290291        uitype->CopyFrom(base);
    291292    }