Mercurial > audlegacy
changeset 1770:80955c196e11 trunk
[svn] - fix a potential crash when running audacious remotely
author | nenolod |
---|---|
date | Mon, 02 Oct 2006 18:46:02 -0700 |
parents | 8a926dec916f |
children | 630cdcaad7de |
files | ChangeLog audacious/widgets/playlist_list.c |
diffstat | 2 files changed, 17 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Mon Oct 02 03:35:09 2006 -0700 +++ b/ChangeLog Mon Oct 02 18:46:02 2006 -0700 @@ -1,3 +1,12 @@ +2006-10-02 10:35:09 +0000 William Pitcock <nenolod@nenolod.net> + revision [2475] + - parse equals correctly. + Patch submitted by: TiCPU. + + trunk/libaudacious/rcfile.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + + 2006-10-02 08:56:53 +0000 William Pitcock <nenolod@nenolod.net> revision [2473] - remove some old debugging notices
--- a/audacious/widgets/playlist_list.c Mon Oct 02 03:35:09 2006 -0700 +++ b/audacious/widgets/playlist_list.c Mon Oct 02 18:46:02 2006 -0700 @@ -97,8 +97,14 @@ shade_pixmap(GdkPixmap *in, gint x, gint y, gint x_offset, gint y_offset, gint w, gint h, GdkColor *shade_color) { GdkImage *ximg; - GdkPixmap *p = gdk_pixmap_new(in, w, h, -1); - GdkGC *gc = gdk_gc_new(p); + GdkPixmap *p; + GdkGC *gc; + + if (in == NULL) + return; + + P = gdk_pixmap_new(in, w, h, -1); + gc = gdk_gc_new(p); gdk_draw_pixmap(p, gc, in, x, y, 0, 0, w, h);