GNOME Bugzilla – Bug 170972
GLib's errors on a convertion from .dia to .png
Last modified: 2005-03-20 22:36:07 UTC
Steps to reproduce: 1. 2. 3. Stack trace: $ dia -e file.png file.dia idmap.dia --> idmap.png (dia:9926): GLib-GObject-WARNING **: invalid cast from `-g-type-private--GTypeFlags' to `GObject' (dia:9926): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed This patch removes errors: --- dia/app/app_procs.c 2005-03-20 12:08:30 +0300 +++ dia-new/app/app_procs.c 2005-03-20 12:22:46 +0300 @@ -240,6 +240,7 @@ } diagdata = g_object_new (DIA_TYPE_DIAGRAM_DATA, NULL); + g_object_ref(diagdata); if (!inf->import_func(infname,diagdata,inf->user_data)) { g_error(_("%s error: need valid input file %s\n"), Other information:
Indeed. Thanks for the patch, it is now applied.