background: Don't access the panel object in _finish()
We shouldn't access the panel object as we don't know whether the memory is still valid or the panel has gone away and was freed.
This commit is contained in:
parent
83bb97bfd1
commit
39d7842ebe
1 changed files with 1 additions and 1 deletions
|
@ -252,7 +252,7 @@ on_screenshot_finished (GObject *source,
|
|||
int height;
|
||||
|
||||
error = NULL;
|
||||
g_dbus_connection_call_finish (panel->priv->connection,
|
||||
g_dbus_connection_call_finish (G_DBUS_CONNECTION (source),
|
||||
res,
|
||||
&error);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue