forked from enlightenment/efl
ecore_imf/ibus: Fix memory leak allocated by ibus_bus_new
This commit is contained in:
parent
b7f1c66d3a
commit
777b9beb23
|
@ -303,6 +303,16 @@ ecore_imf_context_ibus_new(void)
|
||||||
return context;
|
return context;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
ecore_imf_context_ibus_shutdown(void)
|
||||||
|
{
|
||||||
|
if (_bus)
|
||||||
|
{
|
||||||
|
g_object_unref(_bus);
|
||||||
|
_bus = NULL;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
ecore_imf_context_ibus_add(Ecore_IMF_Context *ctx)
|
ecore_imf_context_ibus_add(Ecore_IMF_Context *ctx)
|
||||||
{
|
{
|
||||||
|
|
|
@ -37,4 +37,5 @@ void ecore_imf_context_ibus_client_canvas_set(Ecore_IMF_Context *context, void *
|
||||||
Eina_Bool ecore_imf_context_ibus_filter_event(Ecore_IMF_Context *ctx, Ecore_IMF_Event_Type type, Ecore_IMF_Event *event);
|
Eina_Bool ecore_imf_context_ibus_filter_event(Ecore_IMF_Context *ctx, Ecore_IMF_Event_Type type, Ecore_IMF_Event *event);
|
||||||
|
|
||||||
IBusIMContext *ecore_imf_context_ibus_new(void);
|
IBusIMContext *ecore_imf_context_ibus_new(void);
|
||||||
|
void ecore_imf_context_ibus_shutdown(void);
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -81,6 +81,7 @@ im_module_init(void)
|
||||||
|
|
||||||
static void im_module_shutdown(void)
|
static void im_module_shutdown(void)
|
||||||
{
|
{
|
||||||
|
ecore_imf_context_ibus_shutdown();
|
||||||
}
|
}
|
||||||
|
|
||||||
static Ecore_IMF_Context *
|
static Ecore_IMF_Context *
|
||||||
|
|
Loading…
Reference in New Issue