[gnome-builder] plugins: be sure to have the css hash table
- From: Sébastien Lafargue <slafargue src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] plugins: be sure to have the css hash table
- Date: Sat, 5 Mar 2016 12:44:55 +0000 (UTC)
commit a76fba3769557cf3052817867d3e5540b74f2381
Author: Sebastien Lafargue <slafargue gnome org>
Date: Sat Mar 5 13:43:27 2016 +0100
plugins: be sure to have the css hash table
libide/ide-application-plugins.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/libide/ide-application-plugins.c b/libide/ide-application-plugins.c
index 1e7ae06..1477822 100644
--- a/libide/ide-application-plugins.c
+++ b/libide/ide-application-plugins.c
@@ -384,6 +384,9 @@ ide_application_unload_plugin_css (IdeApplication *self,
g_assert (plugin_info != NULL);
g_assert (PEAS_IS_ENGINE (engine));
+ if (self->plugin_css == NULL)
+ self->plugin_css = g_hash_table_new_full (NULL, NULL, NULL, g_object_unref);
+
provider = g_hash_table_lookup (self->plugin_css, plugin_info);
if (provider != NULL)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]