Skip to content

Commit

Permalink
Delete m_window when VideoClip is deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
regulus79 committed Oct 5, 2024
1 parent 8b82608 commit 18b4846
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/VideoClip.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ class VideoClip : public Clip
public:
VideoClip(Track * track);
VideoClip(VideoClip & orig);
~VideoClip() override;

gui::ClipView * createView( gui::TrackView * tv ) override;

Expand Down
5 changes: 5 additions & 0 deletions src/core/VideoClip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ VideoClip::VideoClip(VideoClip & orig):
setVideoFile(orig.videoFile());
}

VideoClip::~VideoClip()
{
delete m_window;
}

gui::ClipView * VideoClip::createView(gui::TrackView * tv)
{
return new gui::VideoClipView(this, tv);
Expand Down

0 comments on commit 18b4846

Please sign in to comment.