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





Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Bug-gnubg mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-gnubg

Reply via email to