changeset 1321:b7a29646eb72 trunk

[svn] - sanity checks (don't send NULL pointers off to GTK)
author nenolod
date Wed, 21 Jun 2006 02:23:25 -0700
parents d553c2d3ec2d
children dfa4ef2e8c79
files ChangeLog Plugins/Effect/audiocompress/audacious-glue.c
diffstat 2 files changed, 13 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Tue Jun 20 00:38:31 2006 -0700
+++ b/ChangeLog	Wed Jun 21 02:23:25 2006 -0700
@@ -1,3 +1,12 @@
+2006-06-20 07:38:31 +0000  William Pitcock <nenolod@nenolod.net>
+  revision [1552]
+  - some NSFEs are fucked in the head apparently
+  
+
+  Changes:        Modified:
+  +0 -1           trunk/Plugins/Input/console/Music_Emu.h  
+
+
 2006-06-20 07:16:02 +0000  George Averill <nhjm449@gmail.com>
   revision [1550]
   - s/Miscillaneous/Miscellaneous/ in audtool.c
--- a/Plugins/Effect/audiocompress/audacious-glue.c	Tue Jun 20 00:38:31 2006 -0700
+++ b/Plugins/Effect/audiocompress/audacious-glue.c	Wed Jun 21 02:23:25 2006 -0700
@@ -151,8 +151,11 @@
 
 void freePrefs(CompressorPrefs * prefs)
 {
+	/* this shouldn't happen, but... */
+	if (prefs == NULL || prefs->dialog == NULL)
+		return;
+
 	gtk_widget_destroy(prefs->dialog);
-
 }
 
 void savePrefs(CompressorPrefs * prefs)