mirror of
https://cagebreak.project-repo.co/cagebreak.git
synced 2026-08-24 06:24:19 +02:00
Fix null-pointer dereference
This commit is contained in:
parent
b989fe50f0
commit
72bcf8f1de
1 changed files with 2 additions and 1 deletions
|
|
@ -1,4 +1,5 @@
|
|||
#include <cairo/cairo.h>
|
||||
#include <drm_fourcc.h>
|
||||
#include <pango/pangocairo.h>
|
||||
#include <unistd.h>
|
||||
#include <wlr/backend.h>
|
||||
|
|
@ -85,7 +86,7 @@ create_message_texture(const char *string, const struct cg_output *output) {
|
|||
int stride = cairo_format_stride_for_width(CAIRO_FORMAT_ARGB32, width);
|
||||
struct wlr_renderer *renderer =
|
||||
wlr_backend_get_renderer(output->wlr_output->backend);
|
||||
texture = wlr_texture_from_pixels(renderer, WL_SHM_FORMAT_ARGB8888, stride,
|
||||
texture = wlr_texture_from_pixels(renderer, DRM_FORMAT_ARGB8888, stride,
|
||||
width, height, data);
|
||||
cairo_surface_destroy(surface);
|
||||
g_object_unref(pango);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue