Free some icon_info instances.
This commit is contained in:
parent
3b57c5f247
commit
3200bad39d
@ -130,6 +130,8 @@ class _IconBuffer(object):
|
||||
icon_info.file_name = info.get_filename()
|
||||
icon_info.attach_x = attach_x
|
||||
icon_info.attach_y = attach_y
|
||||
|
||||
del info
|
||||
else:
|
||||
logging.warning('No icon with the name %s '
|
||||
'was found in the theme.' % self.icon_name)
|
||||
|
@ -28,8 +28,8 @@ class IconEntry(_sugarext.IconEntry):
|
||||
icon_info = icon_theme.lookup_icon(name,
|
||||
gtk.ICON_SIZE_SMALL_TOOLBAR,
|
||||
0)
|
||||
|
||||
pixbuf = gtk.gdk.pixbuf_new_from_file(icon_info.get_filename())
|
||||
del icon_info
|
||||
|
||||
image = gtk.Image()
|
||||
image.set_from_pixbuf(pixbuf)
|
||||
|
Loading…
Reference in New Issue
Block a user