message_to_write_data_free: Don't unref data->message if it is NULL

After the recent changes to message filtering, it can happen that
data->message is NULL when we get here.
This commit is contained in:
Matthias Clasen 2010-09-30 14:40:50 -04:00
parent faaa8a9f8a
commit fe1186a842

View File

@ -876,7 +876,8 @@ static void
message_to_write_data_free (MessageToWriteData *data)
{
_g_dbus_worker_unref (data->worker);
g_object_unref (data->message);
if (data->message)
g_object_unref (data->message);
g_free (data->blob);
g_free (data);
}