wireplumber: fix potential nullpointer deref

This commit is contained in:
Rene D. Obermueller
2025-04-06 09:46:06 +02:00
parent 056295cbc6
commit 9ca52a48c8

View File

@ -299,7 +299,7 @@ void waybar::modules::Wireplumber::onMixerApiLoaded(WpObject* p, GAsyncResult* r
gboolean success = FALSE; gboolean success = FALSE;
g_autoptr(GError) error = nullptr; g_autoptr(GError) error = nullptr;
success = wp_core_load_component_finish(self->wp_core_, res, nullptr); success = wp_core_load_component_finish(self->wp_core_, res, &error);
if (success == FALSE) { if (success == FALSE) {
spdlog::error("[{}]: mixer API load failed", self->name_); spdlog::error("[{}]: mixer API load failed", self->name_);