Merge lp:~ted/indicator-messages/mem-leaks into lp:indicator-messages/0.5

Proposed by Ted Gould
Status: Rejected
Rejected by: Ted Gould
Proposed branch: lp:~ted/indicator-messages/mem-leaks
Merge into: lp:indicator-messages/0.5
Diff against target: 43 lines (+4/-8)
1 file modified
src/indicator-messages.c (+4/-8)
To merge this branch: bzr merge lp:~ted/indicator-messages/mem-leaks
Reviewer Review Type Date Requested Status
Conor Curran (community) Approve
Review via email: mp+47088@code.launchpad.net

Description of the change

Patch from ~hyperair for bug 690668

To post a comment you must log in.
Revision history for this message
Conor Curran (cjcurran) :
review: Approve
Revision history for this message
Ted Gould (ted) wrote :

Rejected because of CA.

Unmerged revisions

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'src/indicator-messages.c'
--- src/indicator-messages.c 2011-01-14 19:10:10 +0000
+++ src/indicator-messages.c 2011-01-21 20:08:53 +0000
@@ -571,6 +571,7 @@
571 width,571 width,
572 height,572 height,
573 GDK_INTERP_BILINEAR);573 GDK_INTERP_BILINEAR);
574 g_object_unref(pixbuf);
574 } else {575 } else {
575 g_debug("Happy with icon sized %dx%d", gdk_pixbuf_get_width(pixbuf), gdk_pixbuf_get_height(pixbuf));576 g_debug("Happy with icon sized %dx%d", gdk_pixbuf_get_width(pixbuf), gdk_pixbuf_get_height(pixbuf));
576 resized_pixbuf = pixbuf;577 resized_pixbuf = pixbuf;
@@ -578,10 +579,7 @@
578 579
579 gtk_image_set_from_pixbuf(GTK_IMAGE(mi_data->icon), resized_pixbuf);580 gtk_image_set_from_pixbuf(GTK_IMAGE(mi_data->icon), resized_pixbuf);
580581
581 /* The other pixbuf should be free'd by the dbusmenu. */582 g_object_unref(resized_pixbuf);
582 if (resized_pixbuf != pixbuf) {
583 g_object_unref(resized_pixbuf);
584 }
585583
586 gtk_widget_show(mi_data->icon);584 gtk_widget_show(mi_data->icon);
587 } else {585 } else {
@@ -633,6 +631,7 @@
633 width,631 width,
634 height,632 height,
635 GDK_INTERP_BILINEAR);633 GDK_INTERP_BILINEAR);
634 g_object_unref(pixbuf);
636 } else {635 } else {
637 g_debug("Happy with icon sized %dx%d", gdk_pixbuf_get_width(pixbuf), gdk_pixbuf_get_height(pixbuf));636 g_debug("Happy with icon sized %dx%d", gdk_pixbuf_get_width(pixbuf), gdk_pixbuf_get_height(pixbuf));
638 resized_pixbuf = pixbuf;637 resized_pixbuf = pixbuf;
@@ -640,10 +639,7 @@
640 639
641 gtk_image_set_from_pixbuf(GTK_IMAGE(mi_data->icon), resized_pixbuf);640 gtk_image_set_from_pixbuf(GTK_IMAGE(mi_data->icon), resized_pixbuf);
642641
643 /* The other pixbuf should be free'd by the dbusmenu. */642 g_object_unref(resized_pixbuf);
644 if (resized_pixbuf != pixbuf) {
645 g_object_unref(resized_pixbuf);
646 }
647 }643 }
648 gtk_misc_set_alignment(GTK_MISC(mi_data->icon), 0.0, 0.5);644 gtk_misc_set_alignment(GTK_MISC(mi_data->icon), 0.0, 0.5);
649 gtk_box_pack_start(GTK_BOX(hbox), mi_data->icon, FALSE, FALSE, padding);645 gtk_box_pack_start(GTK_BOX(hbox), mi_data->icon, FALSE, FALSE, padding);

Subscribers

People subscribed via source and target branches

to all changes: