mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-18 10:46:25 +00:00
Fix warning in QPluginWidget test
Create the signal context object before the signal receiver object to get the signal receiver destroyed before the signal context. This avoids a 'specified signal-context capability has wrong type' warning when the signal receiver tries to free its managed context on destruction. Part of #448.
This commit is contained in:
parent
d46c79b428
commit
a48942bffc
@ -184,8 +184,8 @@ void PluginStarter::_start_plugin(QString &file_name, QByteArray const &file_buf
|
||||
_pc->commit_rom_module("config");
|
||||
}
|
||||
|
||||
Signal_receiver sig_rec;
|
||||
Signal_context sig_ctx;
|
||||
Signal_receiver sig_rec;
|
||||
|
||||
_pc->view_ready_sigh(sig_rec.manage(&sig_ctx));
|
||||
_pc->constrain_geometry(_max_width, _max_height);
|
||||
|
Loading…
Reference in New Issue
Block a user