Comments (3)
Btw,I debugged the block in vertex-buffer. c (lines 78- 90) and found that the
free(desc) crashes only on the last attribute "color:4f" which in turn the only
one which sets desc with strup(start),the previous two set desc with
strnup.Maybe usage of strup somehow causes location being freed by free() to
get invalid?
Original comment by [email protected]
on 12 Nov 2013 at 4:00
from freetype-gl.
Ok,I fixed it.it becomes obvious if setting the lib to compile to C++ and not
to C.In such a case the compiler throws error:
" The POSIX name for this item is deprecated. Instead, use the ISO C++
conformant name: _strdup
"
So I replaced all strdup with _strdup and free() doesn't throw errors
anymore.Do you want to make this fix in the repo?
Original comment by [email protected]
on 12 Nov 2013 at 4:12
from freetype-gl.
This occurs also in VC2013, and _strdup fixes.
Original comment by [email protected]
on 22 Jan 2015 at 8:33
from freetype-gl.
Related Issues (20)
- Compiling with MinGW/MSys HOT 10
- Are contributions welcome? HOT 1
- Error in CMakeLists and some minor incompatibilites in Windows Build HOT 5
- Memory leak in texture_atlas_delete HOT 1
- Missing const in verter-buffer HOT 1
- trunk vs2010 c89 build HOT 1
- make OpenGL Core compatible HOT 5
- Don't add unnecessary include in public api. HOT 1
- Remove FREETYPE_GL_LIBRARY variable from CMakeLists.txt HOT 1
- Demo-cube.c shows empty viewport in VS2010 HOT 2
- Compile error for revision: r225 HOT 7
- Minor fix for CMake on Windows HOT 1
- Add parameters to makefont executable. HOT 2
- Invalid format used for texture_atlas_upload HOT 1
- gl-3.0 branch does not build HOT 1
- Fix unused-but-set compile warning from gcc 4.7 HOT 1
- freetype-gl doesn't do LCD subpixel rendering right
- freetype-gl on C++ ?
- texture_atlas_new 4096 x 4096 memory leak
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from freetype-gl.