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) {
|
} else if(err != NULL) {
|
||||||
char* cmd = data;
|
char* cmd = data;
|
||||||
fprintf(stderr, "%s cannot be executed: %s\n", cmd, err->message);
|
fprintf(stderr, "%s cannot be executed: %s\n", cmd, err->message);
|
||||||
|
g_error_free(err);
|
||||||
} else {
|
} else {
|
||||||
char* cmd = data;
|
char* cmd = data;
|
||||||
fprintf(stderr, "%s cannot be executed\n", cmd);
|
fprintf(stderr, "%s cannot be executed\n", cmd);
|
||||||
|
Loading…
Reference in New Issue
Block a user