[Goodies-dev] xfce4-xkb-plugin patch

Přemysl Janouch p.janouch at gmail.com
Sun Oct 31 13:13:56 CET 2010


Hi,
	this thing was spamming my .xsession-errors file a bit,
because of failing "not NULL" assertions.

=======================================================================
--- xfce4-xkb-plugin-0.5.3.3/panel-plugin/xkb-config.c.orig 2010-10-31 
12:41:49.000000000 +0100
+++ xfce4-xkb-plugin-0.5.3.3/panel-plugin/xkb-config.c  2010-10-31 
12:43:04.000000000 +0100
@@ -201,10 +201,10 @@

      if (config->group_names) g_free (config->group_names);
      if (config->variants) g_free (config->variants);
-    g_hash_table_destroy (config->variant_index_by_group);
+    if (config->variant_index_by_group) g_hash_table_destroy 
(config->variant_index_by_group);

-    g_hash_table_destroy (config->window_map);
-    g_hash_table_destroy (config->application_map);
+    if (config->window_map) g_hash_table_destroy (config->window_map);
+    if (config->application_map) g_hash_table_destroy 
(config->application_map);
  }

  void
=======================================================================

Regards,
Přemysl Janouch

P.S. I'm not subscribed to the list, if anything, CC me.



More information about the Goodies-dev mailing list