diff --git a/plugins/windows-notification/api/src/ginvoke.cpp b/plugins/windows-notification/api/src/ginvoke.cpp index 407c18b3..9641ce1f 100644 --- a/plugins/windows-notification/api/src/ginvoke.cpp +++ b/plugins/windows-notification/api/src/ginvoke.cpp @@ -20,6 +20,8 @@ namespace glib::impl if (not wmsg.empty()) { ptr = wsview_to_char(wmsg); + if (not ptr) + throw 42; std::string msg{ptr}; g_free(const_cast(ptr)); // WTF? Deletion is not modification! return {{ e.code(), {std::move(msg)} }};