Browse Source

FreeHGBD on return

master
Alec Murphy 5 years ago
parent
commit
68c51c2362
  1. 9
      Uriel.HC

9
Uriel.HC

@ -133,6 +133,7 @@ U0 U_InsertThumb(U8 *anchor, U8 *indent, U8 *outdent, U8 *url)
size = Str2I64(HGBD_PARAM_BUF);
if (size<1) {
PopUpOk("Error loading image.");
FreeHGBD;
return;
};
BlkRead(HGBD,HGFS_BUF,1,(size/BLK_SIZE)+1);
@ -148,6 +149,7 @@ U0 U_InsertThumb(U8 *anchor, U8 *indent, U8 *outdent, U8 *url)
DocPrintPartial(DocPut,"$ID,-14$");
};
DocAnchorFind(DocPut,anchor);
FreeHGBD;
}
U0 U_PlayWebM(U8 *anchor, U8 *url)
@ -167,11 +169,13 @@ U0 U_PlayWebM(U8 *anchor, U8 *url)
size = Str2I64(HGBD_PARAM_BUF);
if (size<1) {
PopUpOk("Error loading WebM.");
FreeHGBD;
return;
};
mframes = Str2I64(HGBD_PARAM_BUF+128);
if (mframes<1) {
PopUpOk("Error loading WebM.");
FreeHGBD;
return;
};
BlkRead(HGBD,HGFS_BUF,1,(size/BLK_SIZE)+1);
@ -188,6 +192,7 @@ U0 U_PlayWebM(U8 *anchor, U8 *url)
if (frame>(mframes-1)) { frame=0; };
};
DCFill;
FreeHGBD;
}
U0 U_Browser(U8 *url)
@ -207,6 +212,7 @@ U0 U_Browser(U8 *url)
size = Str2I64(HGBD_PARAM_BUF);
if (size<1) {
PopUpOk("Bad URL.");
FreeHGBD;
return;
};
if (StrCmp(HGBD_PARAM_BUF+128,"download://")==0) {
@ -260,6 +266,7 @@ U0 U_Browser(U8 *url)
StrCpy(Fs->parent_task->task_title, HGBD_PARAM_BUF+128);
};
};
FreeHGBD;
}
U0 U_HistNav(I64 index)
@ -272,6 +279,7 @@ U0 U_HistNav(I64 index)
size = Str2I64(HGBD_PARAM_BUF);
if (size<1) {
PopUpOk("Bad URL.");
FreeHGBD;
return;
};
StrCpy(Fs->parent_task->task_title, HGBD_PARAM_BUF+128);
@ -280,6 +288,7 @@ U0 U_HistNav(I64 index)
DocClear;
DocPutS(DocPut,HGFS_BUF);
DocTop;
FreeHGBD;
}
U0 U_Navigate(U8 *anchor, U8 *url) {

Loading…
Cancel
Save