[Pkg-privacy-commits] [nautilus-wipe] 55/224: Don't unref unexisting operation

Ulrike Uhlig u-guest at moszumanska.debian.org
Thu Jul 7 19:45:34 UTC 2016


This is an automated email from the git hooks/post-receive script.

u-guest pushed a commit to branch master
in repository nautilus-wipe.

commit c7b5bdf7332aafe36147e6cc936fb49074fe18d7
Author: Colomban Wendling <ban at herbesfolles.org>
Date:   Wed Feb 24 22:59:50 2010 +0100

    Don't unref unexisting operation
    
    Operation object was unref'd even on startup failure, time at which
    it isn't created at all.
---
 nautilus-srm/fill-operation.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/nautilus-srm/fill-operation.c b/nautilus-srm/fill-operation.c
index 33cb54e..8e4d65e 100644
--- a/nautilus-srm/fill-operation.c
+++ b/nautilus-srm/fill-operation.c
@@ -189,7 +189,9 @@ nautilus_srm_fill_cleanup (struct FillOperationData *opdata)
 {
   g_signal_handler_disconnect (opdata->operation, opdata->progress_hid);
   g_signal_handler_disconnect (opdata->operation, opdata->finished_hid);
-  g_object_unref (opdata->operation);
+  if (opdata->operation) {
+    g_object_unref (opdata->operation);
+  }
   while (opdata->dir) {
     nautilus_srm_fill_pop_dir (opdata);
   }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/nautilus-wipe.git



More information about the Pkg-privacy-commits mailing list