mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[python] matplotlib: fix modpyplot_gc_collect
This commit is contained in:
@@ -37,11 +37,11 @@ mp_obj_t modpyplot___init__() {
|
||||
}
|
||||
|
||||
void modpyplot_gc_collect() {
|
||||
if (sPlotStore != nullptr) {
|
||||
if (sPlotStore == nullptr) {
|
||||
return;
|
||||
}
|
||||
MicroPython::collectRootsAtAddress(
|
||||
reinterpret_cast<char *>(&sPlotStore),
|
||||
reinterpret_cast<char *>(sPlotStore),
|
||||
sizeof(Matplotlib::PlotStore)
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user