Closed Bug 575095 Opened 14 years ago Closed 14 years ago

Don't use gdk_pixbuf_unref

Categories

(Core :: Widget: Gtk, defect)

x86
Linux
defect
Not set
minor

Tracking

()

RESOLVED DUPLICATE of bug 474116

People

(Reporter: agx, Assigned: agx)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.10) Gecko/20100623 Iceweasel/3.5.10 (like Firefox/3.5.10)
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.10) Gecko/20100623 Iceweasel/3.5.10 (like Firefox/3.5.10)

widget/src/gtk2/nsWindow.cpp uses gdk_pixbuf_unref which is deprecated in gdk_pixbuf since 2.0 (since about 2001):

http://library.gnome.org/devel/gdk-pixbuf/stable/gdk-pixbuf-refcounting.html

Attached patch replaces this by calls to g_object_unref.

Reproducible: Always

Actual Results:  
Shouldn't use gdk_pixbuf_unref

Expected Results:  
Should use g_object_unref

gdk_pixbuf_unref will go away for GTK+-3.0
Attachment #454367 - Flags: review?(karlt)
Comment on attachment 454367 [details] [diff] [review]
Use g_object_unref() instead of gdk_pixbuf_unref()

Thank you.
Attachment #454367 - Flags: review?(karlt) → review+
Assignee: nobody → agx
Status: UNCONFIRMED → ASSIGNED
Component: Embedding: GTK Widget → Widget: Gtk
Ever confirmed: true
Keywords: checkin-needed
QA Contact: gtk-widget → gtk
this patch does not apply cleanly, please attach an updated patch and re-ask for c-n.
Keywords: checkin-needed
Already fixed in mozilla-central trunk, so closing.
Already fixed in mozilla-central trunk, so closing.
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Resolution: FIXED → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: