[gitg/wip/remove-webkit] Can avatar loading on diposing.
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg/wip/remove-webkit] Can avatar loading on diposing.
- Date: Thu, 27 Aug 2015 06:45:45 +0000 (UTC)
commit 5e02f962e58efd8024758c40859bdd224b75a3ed
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Thu Aug 27 08:45:07 2015 +0200
Can avatar loading on diposing.
This fixes an assertion at exit.
libgitg/gitg-diff-view-commit-details.vala | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/libgitg/gitg-diff-view-commit-details.vala b/libgitg/gitg-diff-view-commit-details.vala
index bd50e78..15d177d 100644
--- a/libgitg/gitg-diff-view-commit-details.vala
+++ b/libgitg/gitg-diff-view-commit-details.vala
@@ -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());
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]