After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 312929 - gnome_print_job_preview_nx_and_ny_changed leak
gnome_print_job_preview_nx_and_ny_changed leak
Status: RESOLVED FIXED
Product: gnome-print
Classification: Deprecated
Component: print preview
CVS
Other All
: Normal normal
: ---
Assigned To: Jody Goldberg
Jody Goldberg
Depends on:
Blocks:
 
 
Reported: 2005-08-08 19:35 UTC by Morten Welinder
Modified: 2005-09-22 14:51 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Morten Welinder 2005-08-08 19:35:37 UTC
I am seeing p.preview being leaked.

         MLK: 48 bytes leaked at 0x142c638
         This memory was allocated from:
               malloc         [rtlib.o pc=0x2d3d0]
               g_malloc       [gmem.c:137 pc=0xf9b4810c]
               gp_path_new_sized [gp-path.c:73 pc=0xfb2bc260]
               gp_path_new    [gp-path.c:61 pc=0xfb2bc210]
               gp_ctx_new     [gp-gc.c:922 pc=0xfb2c43c8]
               gp_gc_new      [gp-gc.c:106 pc=0xfb2c0860]
               instance_init  [gnome-print-preview.c:524 pc=0xfb3b0024]
               g_type_create_instance [gtype.c:1596 pc=0xfa000abc]
               g_object_constructor [gobject.c:1040 pc=0xf9fd4740]
               g_object_newv  [gobject.c:937 pc=0xf9fd363c]
               g_object_new_valist [gobject.c:1021 pc=0xf9fd46b8]
               g_object_new   [gobject.c:808 pc=0xf9fd2d5c]
               gnome_print_job_preview_nx_and_ny_changed
[gnome-print-job-preview.c:1546 pc=0xfb3ba91c]
                                                  GNOME_TYPE_CANVAS_GROUP,
                                                  "x", 0., "y", 0., NULL);
                                          gnome_canvas_item_affine_absolute
(group, transform); 
               =>                         p.preview = g_object_new
(GNOME_TYPE_PRINT_PREVIEW,
                                                  "group", group,
                                                  "theme_compliance",
jp->theme_compliance,
                                                  NULL);
               gnome_print_job_preview_check_number_of_pages
[gnome-print-job-preview.c:2068 pc=0xfb3bcf30]
               gnome_print_job_preview_set_job [gnome-print-job-preview.c:2233
pc=0xfb3be0d4]
               gnome_print_job_preview_set_property
[gnome-print-job-preview.c:2336 pc=0xfb3be6e4]
               g_object_constructor [gobject.c:708 pc=0xf9fd4acc]
               g_object_newv  [gobject.c:937 pc=0xf9fd363c]
               g_object_new_valist [gobject.c:1021 pc=0xf9fd46b8]
               g_object_new   [gobject.c:808 pc=0xf9fd2d5c]
               gnome_print_job_preview_new [gnome-print-job-preview.c:2680
pc=0xfb3c06cc]
               sheet_print_real [print.c:1234 pc=0xfb51a838]
               sheet_print    [print.c:1326 pc=0xfb51abd8]
               cb_file_print_preview [wbcg-actions.c:99 pc=0xfb5b2b2c]
               g_cclosure_marshal_VOID__VOID [gmarshal.c:77 pc=0xf9ff9608]
Comment 1 Jody Goldberg 2005-09-22 14:51:33 UTC
This was causing other problems.  I think it is patched in cvs now.
patch will be in 2.12.1