My classmate has told me the following interesting proof:
We may assume $f_n\to f$ and $|f_n|\le g$ everywhere by discarding a set of measure zero.
Let $E_n$ be the set $\{x: \frac 1n\le g(x)< \frac{1}{n-1}\}$ if $n\ge 2$ and $E_1= \{x: g(x)\ge 1\}$, $E_0= \{x: g(x)=0\}$. On $E_0$ we must have $f= f_n=0$, and $f_n\to f$ uniformly on $E_0$.
If $f_m\to f$ uniformly on $A$ and $B$, then so does $f_n$ tend to $f$ uniformly on $A\cup B$.
Therefore we may only consider $\cup_{n=1}^{+\infty} E_n$ in what follows.
Then $(E_n)$ are disjoint and each $E_n$ has finite measure as $g\in L^1 (X)$.
Given $\epsilon>0$, for each $n$, we can use Egorov's Theorem to select $A_n\subseteq E_n$,,
$f_m\to f$ uniformly on $A_n$, and $m(E_n- A_n)< \frac{\epsilon}{2^n}$. Then $m(X- \cup_{n=1}^{+\infty} A_n)\le\epsilon$.
We claim $f_m\to f$ uniformly on $\cup_{n=1}^{+\infty} A_n$.
By construction of $E_n$, if $n\ge 2$ and $x\in E_n$, then
$$ |f_n(x)- f(x)|\le 2g(x)< \frac{2}{n-1} . $$
Given $\eta>0$ sufficiently small, we select $N_1$ subject to $\frac{2}{N_1-1} <\eta$.
Then for $m\ge N_1$, $|f_n(x)- f(x)|< \eta$ for all $n\in\mathbb Z_+$ and $x\in E_m$ (and a fortiori when $x\in A_m$).
As $f_n\to f$ uniformly on each $A_1,A_2,\cdots, A_{N_1-1}$ and these are finitely many sets, we can uniformly
select $N\in\mathbb Z_+$ so that
$$ \sup\nolimits_{x\in A_1\cup A_2\cup\cdots\cup A_{N_1-1}} |f_n -f| <\eta $$
for all $n> N$. Consequently, $\sup_{x\in \cup_{n=1}^{+\infty} A_n} |f_m- f|< \eta$ for all $m >N$.
This indicates $f_m\to f$ uniformly on $\cup_{n=1}^{+\infty} A_n$.