Hopefully fix segmentation fault.

This commit is contained in:
Zachary Hall 2024-04-13 13:50:06 -07:00
parent 2b31c8b1b2
commit 4137095ecf

View file

@ -42,9 +42,7 @@ void MainWindow::update_file(optional<std::string> new_file) {
} }
int i = 0; int i = 0;
for (auto row : stream_selection_box.get_children()) { for (auto row : stream_selection_box.get_children()) {
int *data = (int*)row->get_data(Glib::Quark("id"));
row->remove_data(Glib::Quark("id")); row->remove_data(Glib::Quark("id"));
delete data;
} }
stream_selection_box.remove_all(); stream_selection_box.remove_all();
for (auto &stream : playback->get_streams()) { for (auto &stream : playback->get_streams()) {