mirror of https://github.com/davatorium/rofi.git
Fix 2 small memory leaks.
This commit is contained in:
parent
127d838847
commit
ca602383f1
|
@ -1376,6 +1376,7 @@ void error_dialog ( const char *msg, int markup )
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
release_keyboard ( display );
|
release_keyboard ( display );
|
||||||
|
menu_free_state ( &state );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -778,6 +778,7 @@ void textbox_cleanup ( void )
|
||||||
}
|
}
|
||||||
|
|
||||||
g_object_unref ( p_context );
|
g_object_unref ( p_context );
|
||||||
|
pango_xft_shutdown_display ( display, DefaultScreen ( display ) );
|
||||||
p_context = NULL;
|
p_context = NULL;
|
||||||
visual_info = NULL;
|
visual_info = NULL;
|
||||||
target_colormap = None;
|
target_colormap = None;
|
||||||
|
|
Loading…
Reference in New Issue