[gnome-software] trivial: Fix critical warning when closing the review dialog



commit 47e8f628c52641e3935ff80a7f33f782e338afea
Author: Richard Hughes <richard hughsie com>
Date:   Thu Feb 18 16:58:48 2016 +0000

    trivial: Fix critical warning when closing the review dialog

 src/gs-review-dialog.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/gs-review-dialog.c b/src/gs-review-dialog.c
index 4af9440..dcf2040 100644
--- a/src/gs-review-dialog.c
+++ b/src/gs-review-dialog.c
@@ -164,8 +164,10 @@ static void
 gs_review_row_dispose (GObject *object)
 {
        GsReviewDialog *dialog = GS_REVIEW_DIALOG (object);
-       if (dialog->timer_id > 0)
+       if (dialog->timer_id > 0) {
                g_source_remove (dialog->timer_id);
+               dialog->timer_id = 0;
+       }
        G_OBJECT_CLASS (gs_review_dialog_parent_class)->dispose (object);
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]