mirror of
https://github.com/hyprwm/xdg-desktop-portal-hyprland.git
synced 2024-11-22 06:35:57 +01:00
Add comments to wlr_frame_buffer_clear in wlr_screencast.c
This commit is contained in:
parent
06aa0a0bda
commit
24a793135c
1 changed files with 2 additions and 0 deletions
|
@ -20,10 +20,12 @@
|
|||
#include "logger.h"
|
||||
|
||||
static void wlr_frame_buffer_clear(struct xdpw_screencast_instance *cast) {
|
||||
// This check isn't needed
|
||||
if (cast->simple_frame.data != NULL) {
|
||||
munmap(cast->simple_frame.data, cast->simple_frame.size);
|
||||
cast->simple_frame.data = NULL;
|
||||
}
|
||||
// This one is
|
||||
if (cast->simple_frame.buffer != NULL) {
|
||||
wl_buffer_destroy(cast->simple_frame.buffer);
|
||||
cast->simple_frame.buffer = NULL;
|
||||
|
|
Loading…
Reference in a new issue