GNOME Bugzilla – Bug 454037
Invalid free when selecting Print in the menu
Last modified: 2007-10-15 15:50:51 UTC
No symbol table info available.
+ Trace 145951
==20585== ==20585== Invalid free() / delete / delete[] ==20585== at 0x401F0FF: free (in /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so) ==20585== by 0x4B8BF10: g_free (gmem.c:187) ==20585== by 0x4093574: catalog_set_standard_page_size (print-callbacks.c:1680) ==20585== by 0x4094FEC: print_catalog_dlg_full (print-callbacks.c:2565) ==20585== by 0x40950F2: print_catalog_dlg (print-callbacks.c:2733) ==20585== by 0x80A3F0D: gth_window_activate_action_file_print (gth-window-actions-callbacks.c:259) ==20585== by 0x4B24E70: g_cclosure_marshal_VOID__VOID (gmarshal.c:77) ==20585== by 0x4B16F5C: g_closure_invoke (gclosure.c:490) ==20585== by 0x4B291FA: signal_emit_unlocked_R (gsignal.c:2440) ==20585== by 0x4B2A664: g_signal_emit_valist (gsignal.c:2199) ==20585== by 0x4B2A8EA: g_signal_emit (gsignal.c:2243) ==20585== by 0x447CFB5: _gtk_action_emit_activate (gtkaction.c:880) ==20585== Address 0x658D5B8 is 440 bytes inside a block of size 504 alloc'd ==20585== at 0x401E710: memalign (in /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so) ==20585== by 0x401E76A: posix_memalign (in /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so) ==20585== by 0x4BA049E: slab_allocator_alloc_chunk (gslice.c:1115) ==20585== by 0x4BA168D: g_slice_alloc (gslice.c:645) ==20585== by 0x4BA17B5: g_slice_alloc0 (gslice.c:812) ==20585== by 0x4B3873D: g_type_create_instance (gtype.c:1549) ==20585== by 0x4B1D233: g_object_constructor (gobject.c:1046) ==20585== by 0x4B1DA06: g_object_newv (gobject.c:937) ==20585== by 0x4B1E534: g_object_new_valist (gobject.c:986) ==20585== by 0x4B1E6F2: g_object_new (gobject.c:795) ==20585== by 0x4A0C771: atk_no_op_object_new (in /usr/lib/libatk-1.0.so.0.1912.1) ==20585== by 0x4A0C96A: (within /usr/lib/libatk-1.0.so.0.1912.1)
I suppose g_free at libgthumb/print-callbacks.c:1680 should be changed to gtk_paper_size_free
Created attachment 91267 [details] [review] Patch to use gtk_paper_size_free instead of g_free to free the GtkPaperSize
Thank you! Patch committed to gthumb-2-10 branch and trunk. It should appear in the next release of gThumb. - Mike
*** Bug 486823 has been marked as a duplicate of this bug. ***