update emoji autocorrect entries from po-files
[LibreOffice.git] / external / collada2gltf / patches / collada2gltf.fix-memory-leak2.patch.1
blob81b4db86f016dee95c140bf681ccbb1213fb2477
1 diff -ur collada2gltf.org/COLLADA2GLTFWriter.cpp collada2gltf/COLLADA2GLTFWriter.cpp
2 --- collada2gltf.org/COLLADA2GLTFWriter.cpp     2014-07-06 06:42:01.305850400 +0200
3 +++ collada2gltf/COLLADA2GLTFWriter.cpp 2014-07-06 06:45:57.000840753 +0200
4 @@ -75,10 +75,13 @@
5                  
6                 COLLADAFW::Root root(&this->_loader, this);
7          this->_loader.registerExtraDataCallbackHandler(this->_extraDataHandler);
8 -               if (!root.loadDocument(asset->getInputFilePath()))
9 +               if (!root.loadDocument(asset->getInputFilePath())) {
10 +                    delete _extraDataHandler;
11                         return false;
12 +                }
13          
14          asset->write();
15 +        delete _extraDataHandler;
16                  
17                 return true;
18         }