[dia/dia-0-97] Fix unconditional dia_font_unref(renderer->font)



commit 81b97133b79c3cf762775f5e13281b0752fca41b
Author: Hans Breuer <hans breuer org>
Date:   Sat Dec 5 13:40:17 2009 +0100

    Fix unconditional dia_font_unref(renderer->font)
    (cherry picked from commit c6d293737f44acc1d4c963a80445abc28a195ab2)

 plug-ins/cgm/cgm.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/plug-ins/cgm/cgm.c b/plug-ins/cgm/cgm.c
index 9f3f032..fdcb240 100644
--- a/plug-ins/cgm/cgm.c
+++ b/plug-ins/cgm/cgm.c
@@ -1268,7 +1268,8 @@ export_cgm(DiagramData *data, const gchar *filename,
 
     data_render(data, DIA_RENDERER(renderer), NULL, NULL, NULL);
 
-    dia_font_unref(renderer->font);
+    if (renderer->font != NULL)
+      dia_font_unref(renderer->font);
     g_object_unref(renderer);
 }
 



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