Commit 72c70148 authored by Maciej Suminski's avatar Maciej Suminski
Browse files

Fixed a few memory leaks and Valgrind warnings.

parent da678809
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -38,6 +38,7 @@ RENDER_SETTINGS::RENDER_SETTINGS()
    m_highlightEnabled      = false;
    m_hiContrastEnabled     = false;
    m_hiContrastFactor      = 0.2;
    m_highlightNetcode      = -1;
    m_outlineWidth          = 1;
    m_worksheetLineWidth    = 100000;

+2 −0
Original line number Diff line number Diff line
@@ -47,6 +47,8 @@ public:
    ///> Copy constructor
    CONTEXT_MENU( const CONTEXT_MENU& aMenu );

    virtual ~CONTEXT_MENU() {};

    /**
     * Function SetTitle()
     * Sets title for the context menu. The title is shown as a text label shown on the top of
+1 −2
Original line number Diff line number Diff line
@@ -117,9 +117,8 @@ protected:
    bool              m_useCmpFileForFpNames;   ///< is true, use the .cmp file from CvPcb, else use the netlist
                                                // to know the footprint name of components.

    // Functions that handle the Tool Framework (de)initalization
    // The Tool Framework initalization
    void setupTools();
    void destroyTools();

    // we'll use lower case function names for private member functions.
    void createPopUpMenuForZones( ZONE_CONTAINER* edge_zone, wxMenu* aPopMenu );
+0 −1
Original line number Diff line number Diff line
@@ -264,7 +264,6 @@ set( PCBNEW_CLASS_SRCS
    tools/edit_tool.cpp
    tools/pcbnew_control.cpp
    tools/pcb_editor_control.cpp
    tools/pcb_tools.cpp
    tools/placement_tool.cpp
    tools/common_actions.cpp
    )
+3 −0
Original line number Diff line number Diff line
@@ -125,6 +125,9 @@ PCB_BASE_FRAME::~PCB_BASE_FRAME()
{
    delete m_Collector;

    delete m_toolManager;
    delete m_toolDispatcher;

    delete m_Pcb;
    delete GetGalCanvas();
}
Loading