OT: What causes the Segfault in the following?
    Kagamin via Digitalmars-d-learn 
    digitalmars-d-learn at puremagic.com
       
    Fri Aug  4 10:28:51 PDT 2017
    
    
  
On Friday, 4 August 2017 at 02:38:10 UTC, Andrew Edwards wrote:
> OK, I was is indeed the problem. I was thinking for some reason 
> that s gets initialized inside nk_color_hex_rgb()
Usually C functions don't allocate memory. And when they do, they 
do it in unique ways, which is a PITA, that's why the caller is 
usually responsible for memory management.
    
    
More information about the Digitalmars-d-learn
mailing list