Skip to content

Commit

Permalink
Fixed SGMatrix constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
lisitsyn committed Aug 30, 2012
1 parent 78f693c commit 4520986
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shogun/lib/SGMatrix.h
Expand Up @@ -25,7 +25,7 @@ template<class T> class SGMatrix : public SGReferencedData
{
public:
/** default constructor */
SGMatrix() : SGReferencedData(false)
SGMatrix() : SGReferencedData(true)

This comment has been minimized.

Copy link
@sonney2k

sonney2k Aug 30, 2012

Member

uhh ohh! dangerous game...

This comment has been minimized.

Copy link
@lisitsyn

lisitsyn Aug 30, 2012

Author Member

Why?

This comment has been minimized.

Copy link
@lisitsyn

lisitsyn Aug 30, 2012

Author Member

I expect it was dangerous :)

This comment has been minimized.

Copy link
@lisitsyn

lisitsyn Aug 30, 2012

Author Member

Okay see next commit :)

{
init_data();
}
Expand Down

2 comments on commit 4520986

@karlnapf
Copy link
Member

Choose a reason for hiding this comment

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

Indeed!
serialisation related, sergey?

@lisitsyn
Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, leads to leaks

Please sign in to comment.