On Wednesday 27 February 2002 10:17 am, Edwin Leuven wrote:
> 1. new doc
> 2. insert eps
> 3. close without saving
> 
> then Segmentation fault:
> 
> #0  0x402d2025 in __libc_free (mem=0x84c6d18) at malloc.c:3155
> #1  0x0821c695 in grfx::GImageXPM::Data::~Data (this=0x84bf49c, __in_chrg=2)
>     at ../../src/support/utility.h:44

Hmmm. I don't get this. However, are things cured if you modify the d-tor
(graphics/GraphicsImageXPM.C) to:

GImageXPM::Data::~Data()
{
-       if (colorTable_.unique())
+       if (colorTable_.get() && colorTable_.unique())
                free_color_table(colorTable_.get(), ncolors_);
}

Angus


Reply via email to