Changeset 8583:32d5f23d500d in orange


Ignore:
Timestamp:
08/03/11 11:14:39 (3 years ago)
Author:
Noughmad <Noughmad@…>
Branch:
default
Convert:
ca7e35cc131289a535b171dcfc84cd684fb3a30c
Message:

Prevent a memory leak when detaching a PlotItem with detach()

Location:
source/orangeplot
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • source/orangeplot/plotitem.cpp

    r8501 r8583  
    3636void PlotItem::detach() 
    3737{ 
     38    qDebug() << "PlotItem::detach"; 
    3839    if (m_plot) 
    3940    { 
  • source/orangeplot/plotitem.sip

    r8475 r8583  
    2020    void attach(Plot* graph /TransferThis/); 
    2121    void detach(); 
     22    %MethodCode 
     23        sipTransferBack(sipGetPyObject(sipCpp, sipType_PlotItem)); 
     24        sipCpp->detach(); 
     25    %End 
     26 
    2227    Plot* plot(); 
    2328     
Note: See TracChangeset for help on using the changeset viewer.