Commit f6a33c48 authored by Maksim Shabunin's avatar Maksim Shabunin

Merge pull request #9031 from huangqinjin:gtk

parents f1a56cb4 aa75b606
......@@ -951,6 +951,7 @@ static gboolean cvImageWidget_draw(GtkWidget* widget, cairo_t *cr, gpointer data
}
cairo_paint(cr);
if(pixbuf)
g_object_unref(pixbuf);
return TRUE;
}
......@@ -1005,6 +1006,7 @@ static gboolean cvImageWidget_expose(GtkWidget* widget, GdkEventExpose* event, g
}
cairo_paint(cr);
if(pixbuf)
g_object_unref(pixbuf);
cairo_destroy(cr);
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