Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
8ea27021
Kaydet (Commit)
8ea27021
authored
Tem 04, 2014
tarafından
Zolnai Tamás
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
libgltf: Stop a memory leak
Change-Id: I7f3f5cfcdc368907670d58b07300889ea8452340
üst
9feb55b6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
0 deletions
+28
-0
UnpackedTarball_libgltf.mk
external/libgltf/UnpackedTarball_libgltf.mk
+1
-0
stop_a_potential_memory_leak.patch
external/libgltf/patches/stop_a_potential_memory_leak.patch
+27
-0
No files found.
external/libgltf/UnpackedTarball_libgltf.mk
Dosyayı görüntüle @
8ea27021
...
@@ -32,6 +32,7 @@ $(eval $(call gb_UnpackedTarball_add_patches,libgltf,\
...
@@ -32,6 +32,7 @@ $(eval $(call gb_UnpackedTarball_add_patches,libgltf,\
external/libgltf/patches/fix_package_file.patch \
external/libgltf/patches/fix_package_file.patch \
external/libgltf/patches/comma_at_end_of_enumerator_list.patch \
external/libgltf/patches/comma_at_end_of_enumerator_list.patch \
external/libgltf/patches/extra_semicolon.patch \
external/libgltf/patches/extra_semicolon.patch \
external/libgltf/patches/stop_a_potential_memory_leak.patch \
))
))
# vim: set noet sw=4 ts=4:
# vim: set noet sw=4 ts=4:
external/libgltf/patches/stop_a_potential_memory_leak.patch
0 → 100644
Dosyayı görüntüle @
8ea27021
changeset: 1068:ef62f9d46016
branch: improvement
parent: 1065:ce62a560f347
user: LeiQu
date: Tue Jul 01 14:46:15 2014 +0800
summary: Fix the bug of memory leak
diff -ur libgltf.org/src/LoadScene.cpp libgltf/src/LoadScene.cpp
--- libgltf.org/src/LoadScene.cpp 2014-07-04 16:35:53.702409179 +0200
+++ libgltf/src/LoadScene.cpp 2014-07-04 16:35:59.926408911 +0200
@@ -1052,10 +1052,14 @@
std::string nodeId;
for (; it != itEnd; ++it)
{
- Animation* pAnimation = new Animation();
boost::property_tree::ptree pAnimTree = it->second;
nodeId = parseChannel(pAnimTree);
- parsePara(pAnimTree, pAnimation, nodeId);
+ if (nodeId.empty())
+ {
+ continue;
+ }
+ Animation* pAnimation = new Animation();
+ parsePara(pAnimTree, pAnimation, nodeId);
this->pScene->insertAnimMap(nodeId, pAnimation);
}
return true;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment