Skip to content

Commit

Permalink
fix: fix memory leak in danchors.cpp
Browse files Browse the repository at this point in the history
Log:
  • Loading branch information
xzl01 committed Jul 18, 2023
1 parent 2fa6097 commit 75ad5f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion include/widgets/danchors.h
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ private Q_SLOTS:
private:
DAnchorsBase(QWidget *w, bool);

QExplicitlySharedDataPointer<QSharedData> d_ptr;
QExplicitlySharedDataPointer<DAnchorsBasePrivate> d_ptr;

Q_DECLARE_PRIVATE(DAnchorsBase)
};
Expand Down
1 change: 1 addition & 0 deletions src/widgets/danchors.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,7 @@ class DAnchorsRect: public QRect

class DAnchorsBasePrivate : public QSharedData
{
public:
DAnchorsBasePrivate(DAnchorsBase *qq): q_ptr(qq) {}
~DAnchorsBasePrivate()
{
Expand Down

0 comments on commit 75ad5f1

Please sign in to comment.