Ignore:
Timestamp:
Aug 2, 2013, 5:50:33 PM (7 years ago)
Author:
sam
Message:

input: fix a memory leak in the controller code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/input/controller.h

    r2825 r2836  
    8383    static Array<Controller*> DeactivateAll();
    8484
    85     KeyBinding& GetKey(int index) { ASSERT(index >= 0 && index < m_nb_keys); return m_keys[index]; }
    86     AxisBinding& GetAxis(int index) { ASSERT(index >= 0 && index < m_nb_axis); return m_axis[index]; }
     85    KeyBinding& GetKey(int index) { return m_keys[index]; }
     86    AxisBinding& GetAxis(int index) { return m_axis[index]; }
    8787
    8888protected:
    89     KeyBinding* m_keys;
    90     AxisBinding* m_axis;
    91     int m_nb_keys;
    92     int m_nb_axis;
     89    Array<KeyBinding> m_keys;
     90    Array<AxisBinding> m_axis;
    9391
    9492private:
Note: See TracChangeset for help on using the changeset viewer.