Skip to content

Move base-class hash table teardown from dispose() to finalize()#62

Merged
havardgraff merged 1 commit into
mainfrom
copilot/fix-gst-element-dispose-issue
Jun 17, 2026
Merged

Move base-class hash table teardown from dispose() to finalize()#62
havardgraff merged 1 commit into
mainfrom
copilot/fix-gst-element-dispose-issue

Conversation

Copilot AI commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

Summary

Moves the base-class hash table teardown for GstElement and GstBin out of dispose() and into finalize().

Changes

  • subprojects/gstreamer/gst/gstelement.c: Move hash table teardown from dispose() to finalize().
  • subprojects/gstreamer/gst/gstbin.c: Move hash table teardown from dispose() to finalize().

Since dispose() can be called multiple times during an object's lifetime, performing the hash table teardown there can lead to issues. finalize() is only ever called once, making it the correct place for this cleanup.

Copilot AI requested a review from havardgraff June 16, 2026 11:00
@havardgraff havardgraff marked this pull request as ready for review June 17, 2026 08:07
@havardgraff havardgraff merged commit 867f17e into main Jun 17, 2026
1 check passed
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.

2 participants