The memory leak appears to be a malloc that is used to handle unicode 
characters.  I don't think that malloc is required and I will fix the code to 
take it out.

On Jan 23, 2015, at 5:50 AM, Phil Rosenberg <p.d.rosenb...@gmail.com> wrote:

> Hi Laurent
> The wxWidgets driver is currently undergoing a redesign in preparation
> for the next release of plplot. In the new version we will endeavour
> to ensure that we have no memory issues. That particular leak seems to
> be associated with plplot's internal storage buffer. I will have a
> look at what is going on and make sure any issues are dealt with and
> will keep you informed.
> 
> Phil
> 
> On 23 January 2015 at 09:45, Laurent Berger
> <laurent.ber...@univ-lemans.fr> wrote:
>> Hi,
>> 
>> I have got a program using plplot wxwidgets and opencv on windows and
>> linux mint.
>> I use valgrind to check memory on linux. I have got some memory leak
>> (definitely lost) :
>> 
>> ==19342== 128 bytes in 13 blocks are definitely lost in loss record
>> 14,252 of 17,211
>> ==19342==    at 0x4C2935B: malloc (vg_replace_malloc.c:270)
>> ==19342==    by 0x1008661F: rdbuf_text (in
>> /usr/local/lib/libplplot.so.12.0.1)
>> ==19342==    by 0x10085FBC: rdbuf_esc (in
>> /usr/local/lib/libplplot.so.12.0.1)
>> ==19342==    by 0x10086A9C: plbuf_control (in
>> /usr/local/lib/libplplot.so.12.0.1)
>> ==19342==    by 0x100869B9: plRemakePlot (in
>> /usr/local/lib/libplplot.so.12.0.1)
>> ==19342==    by 0x10057EC3: c_plreplot (in
>> /usr/local/lib/libplplot.so.12.0.1)
>> ==19342==    by 0xB8146F5: plstream::replot() (in
>> /usr/local/lib/libplplotcxx.so.11.0.0)
>> ==19342==    by 0xB5FE151: wxPLplotstream::RenewPlot() (in
>> /usr/local/lib/libplplotwxwidgets.so.0.0.0)
>> ==19342==    by 0xB6001FE: wxPLplotwindow::RenewPlot() (in
>> /usr/local/lib/libplplotwxwidgets.so.0.0.0)
>> ==19342==    by 0x495D04: FenetreCoupe::Plot(bool) (in
>> /home/lb/Documents/wxOpenCV/wxOpenCVMain/wxOpenCVMain)
>> ==19342==    by 0x4B70E0: ImageStatistiques::MAJCoupe(wxRect&) (in
>> /home/lb/Documents/wxOpenCV/wxOpenCVMain/wxOpenCVMain)
>> ==19342==    by 0x48737B: ZoneImage::OnLeftButtonUp(wxMouseEvent&) (in
>> /home/lb/Documents/wxOpenCV/wxOpenCVMain/wxOpenCVMain)
>> 
>> My code to plot the curve is here
>> perso.univ-lemans.fr/~berger/Afsd56/FenetreCoupe.cpp and sa screencopy
>> of the curve perso.univ-lemans.fr/~berger/Afsd56/copie.jpg
>> 
>> Is it really a memory leak ? If yes Have you got any idea to solve this
>> problem?
>> Thanks you for your answer.
>> 
>> --
>> Laurent Berger
>> Enseignant-chercheur I.U.T. du Mans
>>    Département Gestion des Entreprises et des Administrations
>>    Département Mesures Physiques
>> Tél 02 43 83 37 09
>> 
>> 
>> ------------------------------------------------------------------------------
>> New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
>> GigeNET is offering a free month of service with a new server in Ashburn.
>> Choose from 2 high performing configs, both with 100TB of bandwidth.
>> Higher redundancy.Lower latency.Increased capacity.Completely compliant.
>> http://p.sf.net/sfu/gigenet
>> _______________________________________________
>> Plplot-devel mailing list
>> Plplot-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/plplot-devel
> 
> ------------------------------------------------------------------------------
> New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
> GigeNET is offering a free month of service with a new server in Ashburn.
> Choose from 2 high performing configs, both with 100TB of bandwidth.
> Higher redundancy.Lower latency.Increased capacity.Completely compliant.
> http://p.sf.net/sfu/gigenet
> _______________________________________________
> Plplot-devel mailing list
> Plplot-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/plplot-devel


------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to