Skip to content

Commit

Permalink
a cheap fix to prevent the crash described in #334 from happening
Browse files Browse the repository at this point in the history
  • Loading branch information
kristopolous committed Mar 21, 2023
1 parent f161c1b commit e170824
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion mod_tiling/ops.c
Original file line number Diff line number Diff line change
Expand Up @@ -147,13 +147,20 @@ bool mod_tiling_untile(WTiling *tiling)

reg2=group_do_attach(grp, &param, &data);

// See #334: tiling->unsplit from the context menu crashes notion
if(tiling->managed_list == NULL) {
break;
}

if(reg2==NULL)
warn(TR("Unable to move a region from tiling to group."));
}

tiling->batchop=FALSE;

region_dispose((WRegion*)tiling);
if(tiling->managed_list != NULL) {
region_dispose((WRegion*)tiling);
}

return TRUE;
}
Expand Down

0 comments on commit e170824

Please sign in to comment.