[sushi] pdf-loader: don't unref object before using its value
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sushi] pdf-loader: don't unref object before using its value
- Date: Wed, 10 Apr 2013 17:02:20 +0000 (UTC)
commit 0d2a2d0a063a4d0b973e3b7ea62149742d0067f1
Author: Philippe Coval <philippe coval eurogiciel fr>
Date: Wed Apr 10 15:32:28 2013 +0200
pdf-loader: don't unref object before using its value
This broke PDF preview.
https://bugzilla.gnome.org/show_bug.cgi?id=697721
src/libsushi/sushi-pdf-loader.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/libsushi/sushi-pdf-loader.c b/src/libsushi/sushi-pdf-loader.c
index 4682c1e..04b8f22 100644
--- a/src/libsushi/sushi-pdf-loader.c
+++ b/src/libsushi/sushi-pdf-loader.c
@@ -269,12 +269,13 @@ query_info_ready_cb (GObject *obj,
}
content_type = g_file_info_get_content_type (info);
- g_object_unref (info);
if (content_type_is_native (content_type))
load_pdf (self, self->priv->uri);
else
load_openoffice (self);
+
+ g_object_unref (info);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]