Skip to content

Commit

Permalink
replace local allocation with global
Browse files Browse the repository at this point in the history
  • Loading branch information
donpdonp committed Jan 7, 2025
1 parent 160fde6 commit 2ab07d6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/gui/gtk3.zig
Original file line number Diff line number Diff line change
Expand Up @@ -598,8 +598,10 @@ fn actionbar_add() callconv(.C) void {
warn("actionbar_add()\n", .{});
var verb = allocator.create(thread.CommandVerb) catch unreachable;
verb.idle = undefined;
var command = thread.Command{ .actor = myActor, .id = 3, .verb = verb };
thread.signal(myActor, &command);
var command = allocator.create(thread.Command) catch unreachable;
command.id = 3;
command.verb = verb;
thread.signal(myActor, command);
}

fn zoot_drag() callconv(.C) void {
Expand Down

0 comments on commit 2ab07d6

Please sign in to comment.