Commit 0d2a2d0a authored by Philippe Coval's avatar Philippe Coval Committed by Cosimo Cecchi
Browse files

pdf-loader: don't unref object before using its value

This broke PDF preview.
parent 055f3261
......@@ -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);
load_openoffice (self);
g_object_unref (info);
static void
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment