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:
Bastien Nocera 2013-01-15 08:25:59 +01:00
parent 83bb97bfd1
commit 39d7842ebe

View file

@ -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);