Commit f64fea49 authored by Cheng Sun's avatar Cheng Sun

GTK: don't leak Cairo contexts

parent 22c769a3
...@@ -287,6 +287,7 @@ static bool video_expose_handler(GtkWidget *widget, GdkEvent *event, gpointer us ...@@ -287,6 +287,7 @@ static bool video_expose_handler(GtkWidget *widget, GdkEvent *event, gpointer us
(winwidth-iconwidth)/2.0, (winheight-iconheight)/2.0); (winwidth-iconwidth)/2.0, (winheight-iconheight)/2.0);
gdk_cairo_region(cr, event_expose->region); gdk_cairo_region(cr, event_expose->region);
cairo_fill(cr); cairo_fill(cr);
cairo_destroy(cr);
return true; return true;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment