Merge pull request #938 from bmiklautz/plugin_compat
authorMarc-André Moreau <marcandre.moreau@gmail.com>
Sat, 2 Feb 2013 21:30:23 +0000 (13:30 -0800)
committerMarc-André Moreau <marcandre.moreau@gmail.com>
Sat, 2 Feb 2013 21:30:23 +0000 (13:30 -0800)
compat: fix plugin load for plugins without data argument

1  2 
client/common/compatibility.c

@@@ -269,6 -269,11 +269,11 @@@ int freerdp_client_old_command_line_pre
                                index++;
                                i++;
                        }
+               } else {
+                               if (settings->instance)
+                               {
+                                       freerdp_client_old_process_plugin(settings, args);
+                               }
                }
  
                return (index - old_index);
@@@ -341,9 -346,6 +346,9 @@@ int freerdp_detect_old_command_line_syn
                        detect_status = 1;
        }
  
 +      if (settings->ServerHostname)
 +              free(settings->ServerHostname);
 +
        free(settings);
  
        return detect_status;