[gnome-documents] pdf-loader: Simplify reference counting
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents] pdf-loader: Simplify reference counting
- Date: Tue, 28 May 2013 09:17:58 +0000 (UTC)
commit b07f7f8c5e7f356a8550c90c44954acbc8d4a3e1
Author: Debarshi Ray <debarshir gnome org>
Date: Mon May 27 16:35:01 2013 +0200
pdf-loader: Simplify reference counting
https://bugzilla.gnome.org/show_bug.cgi?id=700716
src/lib/gd-pdf-loader.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/src/lib/gd-pdf-loader.c b/src/lib/gd-pdf-loader.c
index 2573f9d..61e4058 100644
--- a/src/lib/gd-pdf-loader.c
+++ b/src/lib/gd-pdf-loader.c
@@ -225,13 +225,10 @@ ev_load_job_done (EvJob *ev_job,
G_IO_ERROR_FAILED,
_("Unable to load the document")));
- g_clear_object (&ev_job);
return;
}
job->document = g_object_ref (ev_job->document);
- g_object_unref (ev_job);
-
pdf_load_job_complete_success (job);
}
@@ -254,6 +251,7 @@ pdf_load_job_from_pdf (PdfLoadJob *job)
ev_job_scheduler_push_job (ev_job, EV_JOB_PRIORITY_NONE);
+ g_object_unref (ev_job);
g_free (uri);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]