The error is now freed
This commit is contained in:
parent
a84b2cd980
commit
22c32c0f2c
@ -312,6 +312,7 @@ static void launch_done(GObject* obj, GAsyncResult* result, gpointer data) {
|
||||
} else if(err != NULL) {
|
||||
char* cmd = data;
|
||||
fprintf(stderr, "%s cannot be executed: %s\n", cmd, err->message);
|
||||
g_error_free(err);
|
||||
} else {
|
||||
char* cmd = data;
|
||||
fprintf(stderr, "%s cannot be executed\n", cmd);
|
||||
|
Loading…
Reference in New Issue
Block a user