[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-gnubg] Simplified (?) texture loading.
From: |
Øystein Johansen |
Subject: |
Re: [Bug-gnubg] Simplified (?) texture loading. |
Date: |
Thu, 27 Apr 2006 22:59:55 +0200 |
User-agent: |
Mozilla Thunderbird 1.0.6 (Windows/20050716) |
Christian Anthon wrote:
> free(bits); /* Release loaded image data */
>
> causes a double free on start up here on linux.
*slap*
(The sound of my palm hitting my forehead!)
first I do: g_object_unref(pixbuf);
which frees the memory to the pixmap. Then I do: free(bits);
which frees memory at a pointer somewhere inside the pixmap that was
just freeed.... That's silly.
And it fixes the strange crashes.... ;-)
-Øystein
signature.asc
Description: OpenPGP digital signature