Can avatar loading on diposing.

This fixes an assertion at exit.
This commit is contained in:
Ignacio Casal Quinteiro 2015-08-27 08:45:07 +02:00
parent 29cd2d203d
commit 825c3cf645

View file

@ -136,6 +136,16 @@ class Gitg.DiffViewCommitDetails : Gtk.Grid
});
}
protected override void dispose()
{
if (d_avatar_cancel != null)
{
d_avatar_cancel.cancel();
}
base.dispose();
}
private string author_to_markup(Ggit.Signature author)
{
var name = Markup.escape_text(author.get_name());