[gtk+] gtkmodules: don't append NULL to module list for blacklisted module



commit 228f30e055589bfe5c053b472ab415cddb88a0a6
Author: Dan Winship <danw gnome org>
Date:   Thu Sep 8 16:47:57 2011 -0400

    gtkmodules: don't append NULL to module list for blacklisted module
    
    fixes a crash when removing "gail" from gtksettings-specified modules

 gtk/gtkmodules.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkmodules.c b/gtk/gtkmodules.c
index d4135f0..3a8dac3 100644
--- a/gtk/gtkmodules.c
+++ b/gtk/gtkmodules.c
@@ -377,7 +377,7 @@ load_module (GSList      *module_list,
 	}
     }
 
-  if (success)
+  if (success && info)
     {
       if (!g_slist_find (module_list, info))
 	{



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]