From: mishas Date: Mon, 16 Apr 2007 19:09:47 +0000 (+0000) Subject: make a private copy of the icon obtained through gtk_icon_them_load_icon X-Git-Url: http://vcs.maemo.org/git/?p=simple-launcher;a=commitdiff_plain;h=da6ac74d6131577f2a88d7fa6b378e1d46185042 make a private copy of the icon obtained through gtk_icon_them_load_icon git-svn-id: file:///svnroot/simple-launcher/trunk@191 3ba93dab-e023-0410-b42a-de7732cf370a --- diff --git a/launcher-item.cc b/launcher-item.cc index 39fa274..2b8c79f 100644 --- a/launcher-item.cc +++ b/launcher-item.cc @@ -162,6 +162,14 @@ GdkPixbuf *LauncherItem::getIcon(int icon_size) const { } } + if (pixbuf != NULL) { + GdkPixbuf *tempo = gdk_pixbuf_copy(pixbuf); + + g_object_unref(pixbuf); + + pifxbuf = tempo; + } + return pixbuf; }