gfx/angle/angle-fix-issue-651.patch

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rw-r--r--

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

     1 Fix for https://code.google.com/p/angleproject/issues/detail?id=651
     3 See https://bugzilla.mozilla.org/show_bug.cgi?id=1025576 for details.
     5 diff --git a/gfx/angle/src/compiler/SymbolTable.cpp b/gfx/angle/src/compiler/SymbolTable.cpp
     6 --- a/gfx/angle/src/compiler/SymbolTable.cpp
     7 +++ b/gfx/angle/src/compiler/SymbolTable.cpp
     8 @@ -166,17 +166,18 @@ TFunction::~TFunction()
     9  }
    11  //
    12  // Symbol table levels are a map of pointers to symbols that have to be deleted.
    13  //
    14  TSymbolTableLevel::~TSymbolTableLevel()
    15  {
    16      for (tLevel::iterator it = level.begin(); it != level.end(); ++it)
    17 -        delete (*it).second;
    18 +        if ((*it).first == (*it).second->getMangledName())
    19 +            delete (*it).second;
    20  }
    22  //
    23  // Change all function entries in the table with the non-mangled name
    24  // to be related to the provided built-in operation.  This is a low
    25  // performance operation, and only intended for symbol tables that
    26  // live across a large number of compiles.
    27  //

mercurial