[mutter] Revert "MetaPluginManager: don't try to deference a NULL pointer when processing events"



commit 6f54bab0a8a4f2b183acbb956778416fe0d6810a
Author: Marco Trevisan (TreviƱo) <mail 3v1n0 net>
Date:   Fri Oct 20 03:23:28 2017 -0500

    Revert "MetaPluginManager: don't try to deference a NULL pointer when processing events"
    
    This reverts commit 74565380aa1c342dc2fe3ac4de0fcf72c1698ceb.

 src/compositor/meta-plugin-manager.c |   15 ++++-----------
 1 files changed, 4 insertions(+), 11 deletions(-)
---
diff --git a/src/compositor/meta-plugin-manager.c b/src/compositor/meta-plugin-manager.c
index 9f6e672..834f678 100644
--- a/src/compositor/meta-plugin-manager.c
+++ b/src/compositor/meta-plugin-manager.c
@@ -153,17 +153,10 @@ meta_plugin_manager_event_simple (MetaPluginManager *plugin_mgr,
                                   MetaWindowActor   *actor,
                                   MetaPluginEffect   event)
 {
-  MetaPlugin *plugin;
-  MetaPluginClass *klass;
-  MetaDisplay *display;
-  gboolean retval;
-
-  g_return_val_if_fail (plugin_mgr, FALSE);
-
-  plugin = plugin_mgr->plugin;
-  klass = META_PLUGIN_GET_CLASS (plugin);
-  display = plugin_mgr->compositor->display;
-  retval = FALSE;
+  MetaPlugin *plugin = plugin_mgr->plugin;
+  MetaPluginClass *klass = META_PLUGIN_GET_CLASS (plugin);
+  MetaDisplay *display = plugin_mgr->compositor->display;
+  gboolean retval = FALSE;
 
   if (display->display_opening)
     return FALSE;


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