plugin: plug memleaks
This commit is contained in:
@@ -546,6 +546,7 @@ port_probe_run_ready (MMPortProbe *probe,
|
|||||||
g_simple_async_result_set_op_res_gpointer (ctx->result,
|
g_simple_async_result_set_op_res_gpointer (ctx->result,
|
||||||
GUINT_TO_POINTER (MM_PLUGIN_SUPPORTS_PORT_UNSUPPORTED),
|
GUINT_TO_POINTER (MM_PLUGIN_SUPPORTS_PORT_UNSUPPORTED),
|
||||||
NULL);
|
NULL);
|
||||||
|
g_error_free (error);
|
||||||
}
|
}
|
||||||
/* Probing failed but the plugin tells us to retry; so we'll defer the
|
/* Probing failed but the plugin tells us to retry; so we'll defer the
|
||||||
* probing a bit */
|
* probing a bit */
|
||||||
@@ -555,6 +556,7 @@ port_probe_run_ready (MMPortProbe *probe,
|
|||||||
g_simple_async_result_set_op_res_gpointer (ctx->result,
|
g_simple_async_result_set_op_res_gpointer (ctx->result,
|
||||||
GUINT_TO_POINTER (MM_PLUGIN_SUPPORTS_PORT_DEFER),
|
GUINT_TO_POINTER (MM_PLUGIN_SUPPORTS_PORT_DEFER),
|
||||||
NULL);
|
NULL);
|
||||||
|
g_error_free (error);
|
||||||
}
|
}
|
||||||
/* For remaining errors, just propagate them */
|
/* For remaining errors, just propagate them */
|
||||||
else {
|
else {
|
||||||
|
Reference in New Issue
Block a user