fix crash that occurs with glib2.10
This commit is contained in:
parent
82be50bae4
commit
a347a9c02f
@ -1,8 +1,8 @@
|
||||
# $OpenBSD: Makefile,v 1.6 2006/01/20 23:17:57 steven Exp $
|
||||
# $OpenBSD: Makefile,v 1.7 2006/05/29 07:58:51 jolan Exp $
|
||||
|
||||
COMMENT= "see temperature/weather conditions on the xfce4 panel"
|
||||
DISTNAME= xfce4-weather-plugin-0.4.9
|
||||
PKGNAME= ${DISTNAME:S/-plugin//}p4
|
||||
PKGNAME= ${DISTNAME:S/-plugin//}p5
|
||||
MASTER_SITES= http://download.berlios.de/xfce-goodies/
|
||||
|
||||
HOMEPAGE= http://xfce-goodies.berlios.de/
|
||||
|
@ -0,0 +1,30 @@
|
||||
$OpenBSD: patch-panel-plugin_scrollbox_c,v 1.1 2006/05/29 07:58:51 jolan Exp $
|
||||
--- panel-plugin/scrollbox.c.orig Mon Feb 28 09:25:19 2005
|
||||
+++ panel-plugin/scrollbox.c Mon May 29 02:54:43 2006
|
||||
@@ -17,7 +17,7 @@ enum {
|
||||
void free_label(struct label *lbl)
|
||||
{
|
||||
if (lbl->pixmap)
|
||||
- g_free(lbl->pixmap);
|
||||
+ g_object_unref(lbl->pixmap);
|
||||
if (lbl->msg)
|
||||
g_free(lbl->msg);
|
||||
}
|
||||
@@ -305,7 +305,7 @@ gtk_scrollbox_finalize(GObject *gobject)
|
||||
{
|
||||
struct label *lbl = (struct label*)g_ptr_array_index(self->labels, i);
|
||||
|
||||
- g_free(lbl->pixmap);
|
||||
+ g_object_unref(lbl->pixmap);
|
||||
g_free(lbl->msg);
|
||||
}
|
||||
g_ptr_array_free(self->labels, TRUE);
|
||||
@@ -337,7 +337,7 @@ void redraw_labels (GtkWidget *widget, G
|
||||
newpixmap = make_pixmap(self, lbl->msg);
|
||||
|
||||
if (lbl->pixmap)
|
||||
- g_free(lbl->pixmap);
|
||||
+ g_object_unref(lbl->pixmap);
|
||||
|
||||
lbl->pixmap = newpixmap;
|
||||
}
|
Loading…
Reference in New Issue
Block a user