Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QueryNode: Memory leak fix + refactoring #614

Merged
merged 10 commits into from
Jun 11, 2015
Merged

QueryNode: Memory leak fix + refactoring #614

merged 10 commits into from
Jun 11, 2015

Conversation

uklotzde
Copy link
Contributor

@uklotzde uklotzde commented Jun 9, 2015

  • Cherry pick memory leak fix from 1.12 to avoid merge conflicts
  • Replace plain pointers with std::unique_ptr to avoid memory leaks
  • Delete obsolete constructors and destructors
  • Add 'override' keyword to inherited virtual functions in derived classes
  • Fix (or comment) fragile design of Numeric-/DurationFilterNode
  • Consistent wrapping of SQL expressions into parantheses
  • Improve readability using auto and std::make_unique

@rryan
Copy link
Member

rryan commented Jun 11, 2015

Just a note -- in general I'd like to avoid switching to STL containers (just yet).

The main reason being is that we don't control the implementation of that container while we do control what version of Qt we bundle with Mixxx so we know exactly what we're getting.

This argument is primarily oriented around engine code. However we have had memory and performance issues outside of the engine (e.g. in the waveform) due to our use of STL vectors and not being able to easily inspect its implementation on every given platform.

Also if we are using a mix of containers then it becomes harder for modules to interoperate.

rryan added a commit that referenced this pull request Jun 11, 2015
QueryNode: Memory leak fix + refactoring
@rryan rryan merged commit 926ea8a into mixxxdj:master Jun 11, 2015
}

protected:
QList<QueryNode*> m_nodes;
// NOTE(uklotzde): std::vector is more suitable (efficiency)
// than a QList for a private member. And QList from Qt 4
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assumed we switched also to Qt5 now. AFAIK we chose that 1.12 will be the last Qt4 release

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am afraid we will fail the one or two month after 1.12 release target for the mp3 fixes.
So I think we should have an other qt4 release.
I think we should either cut a branch for 1.13 or for Qt5

@uklotzde uklotzde deleted the QueryNodeRefactoring branch July 18, 2015 12:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants