Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit c5e3ebf

Browse files
committed
Add note about allocated strings
1 parent e1243c6 commit c5e3ebf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

shell/platform/linux/fl_renderer.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ typedef struct {
5757

5858
G_DEFINE_TYPE_WITH_PRIVATE(FlRenderer, fl_renderer, G_TYPE_OBJECT)
5959

60-
// Returns the log for the given OpenGL shader.
60+
// Returns the log for the given OpenGL shader. Must be freed by the caller.
6161
static gchar* get_shader_log(GLuint shader) {
6262
int log_length;
6363
gchar* log;
@@ -70,7 +70,7 @@ static gchar* get_shader_log(GLuint shader) {
7070
return log;
7171
}
7272

73-
// Returns the log for the given OpenGL program.
73+
// Returns the log for the given OpenGL program. Must be freed by the caller.
7474
static gchar* get_program_log(GLuint program) {
7575
int log_length;
7676
gchar* log;

0 commit comments

Comments
 (0)